DATACMNS-867 - Consistent non-capitalization of Querydsl.
This commit is contained in:
@@ -41,7 +41,7 @@ import com.querydsl.core.types.Predicate;
|
||||
public class QuerydslRepositoryInvokerAdapterUnitTests {
|
||||
|
||||
@Mock RepositoryInvoker delegate;
|
||||
@Mock QueryDslPredicateExecutor<Object> executor;
|
||||
@Mock QuerydslPredicateExecutor<Object> executor;
|
||||
@Mock Predicate predicate;
|
||||
|
||||
QuerydslRepositoryInvokerAdapter adapter;
|
||||
|
||||
@@ -16,20 +16,20 @@
|
||||
package org.springframework.data.querydsl;
|
||||
|
||||
import static org.assertj.core.api.Assertions.*;
|
||||
import static org.springframework.data.querydsl.QueryDslUtils.*;
|
||||
import static org.springframework.data.querydsl.QuerydslUtils.*;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* Unit tests for {@link QueryDslUtils}.
|
||||
* Unit tests for {@link QuerydslUtils}.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
public class QueryDslUtilsUnitTests {
|
||||
public class QuerydslUtilsUnitTests {
|
||||
|
||||
@Test // DATACMNS-883
|
||||
public void rendersDotPathForPathTraversalContainingAnyExpression() {
|
||||
assertThat(QueryDslUtils.toDotPath(QUser.user.addresses.any().street)).isEqualTo("addresses.street");
|
||||
assertThat(QuerydslUtils.toDotPath(QUser.user.addresses.any().street)).isEqualTo("addresses.street");
|
||||
}
|
||||
|
||||
@Test // DATACMNS-941
|
||||
@@ -37,13 +37,11 @@ public class SimpleEntityPathResolverUnitTests {
|
||||
|
||||
@Test
|
||||
public void resolvesEntityPathForInnerClassCorrectly() throws Exception {
|
||||
|
||||
assertThat(resolver.createPath(NamedUser.class)).isInstanceOf(QSimpleEntityPathResolverUnitTests_NamedUser.class);
|
||||
}
|
||||
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void rejectsClassWithoutQueryClassConfrmingToTheNamingScheme() throws Exception {
|
||||
|
||||
resolver.createPath(QSimpleEntityPathResolverUnitTests_Sample.class);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user