DATACMNS-867 - Consistent non-capitalization of Querydsl.

This commit is contained in:
Oliver Gierke
2016-12-20 15:13:48 +01:00
parent 2210f2e8e9
commit 9c6f764131
9 changed files with 25 additions and 28 deletions

View File

@@ -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;

View File

@@ -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

View File

@@ -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);
}