mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
No effective change - format only
This commit is contained in:
+12
-12
@@ -2,7 +2,6 @@ package io.ebeaninternal.server.expression;
|
||||
|
||||
import io.ebean.Expression;
|
||||
import io.ebeaninternal.api.SpiExpression;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.assertj.core.api.StrictAssertions.assertThat;
|
||||
@@ -12,12 +11,12 @@ public class DefaultExpressionFactoryTest {
|
||||
|
||||
private String toQueryPlanHash(Expression expression) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
((SpiExpression)expression).queryPlanHash(sb);
|
||||
((SpiExpression) expression).queryPlanHash(sb);
|
||||
return sb.toString();
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLowerILike() throws Exception {
|
||||
public void testLowerILike() {
|
||||
|
||||
DefaultExpressionFactory factory = new DefaultExpressionFactory(false, false);
|
||||
Expression expression = factory.ilike("name", "foo");
|
||||
@@ -25,7 +24,7 @@ public class DefaultExpressionFactoryTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNativeILike() throws Exception {
|
||||
public void testNativeILike() {
|
||||
|
||||
DefaultExpressionFactory factory = new DefaultExpressionFactory(false, true);
|
||||
Expression expression = factory.ilike("name", "foo");
|
||||
@@ -33,7 +32,7 @@ public class DefaultExpressionFactoryTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEq() throws Exception {
|
||||
public void testEq() {
|
||||
|
||||
DefaultExpressionFactory factory = new DefaultExpressionFactory(false, false);
|
||||
Expression expression = factory.eq("name", null);
|
||||
@@ -42,15 +41,16 @@ public class DefaultExpressionFactoryTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNe() throws Exception {
|
||||
public void testNe() {
|
||||
|
||||
DefaultExpressionFactory factory = new DefaultExpressionFactory(false, false);
|
||||
Expression expression = factory.ne("name", null);
|
||||
assertThat(expression).isInstanceOf(NullExpression.class);
|
||||
assertThat(toQueryPlanHash(expression)).isEqualTo("NotNull[name]");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIeq() throws Exception {
|
||||
public void testIeq() {
|
||||
|
||||
DefaultExpressionFactory factory = new DefaultExpressionFactory(false, false);
|
||||
Expression expression = factory.ieq("name", null);
|
||||
@@ -59,7 +59,7 @@ public class DefaultExpressionFactoryTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIne() throws Exception {
|
||||
public void testIne() {
|
||||
|
||||
DefaultExpressionFactory factory = new DefaultExpressionFactory(false, false);
|
||||
Expression expression = factory.ine("name", null);
|
||||
@@ -68,7 +68,7 @@ public class DefaultExpressionFactoryTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEq_with_equalsWithNullAsNoop() throws Exception {
|
||||
public void testEq_with_equalsWithNullAsNoop() {
|
||||
|
||||
DefaultExpressionFactory factory = new DefaultExpressionFactory(true, false);
|
||||
Expression expression = factory.eq("name", null);
|
||||
@@ -76,7 +76,7 @@ public class DefaultExpressionFactoryTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNe_with_equalsWithNullAsNoop() throws Exception {
|
||||
public void testNe_with_equalsWithNullAsNoop() {
|
||||
|
||||
DefaultExpressionFactory factory = new DefaultExpressionFactory(true, false);
|
||||
Expression expression = factory.ne("name", null);
|
||||
@@ -84,7 +84,7 @@ public class DefaultExpressionFactoryTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIeq_with_equalsWithNullAsNoop() throws Exception {
|
||||
public void testIeq_with_equalsWithNullAsNoop() {
|
||||
|
||||
DefaultExpressionFactory factory = new DefaultExpressionFactory(true, false);
|
||||
Expression expression = factory.ieq("name", null);
|
||||
|
||||
Reference in New Issue
Block a user