DATALDAP-1 - Polishing.
Split XML configuration into infrastructure and test-specific parts. Add test logging configuration. Rename test classes to end with Tests suffix.
This commit is contained in:
@@ -42,7 +42,7 @@ import org.springframework.ldap.support.LdapUtils;
|
||||
/**
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class SimpleLdapRepositoryTest {
|
||||
public class SimpleLdapRepositoryTests {
|
||||
|
||||
private LdapOperations ldapOperationsMock;
|
||||
private ObjectDirectoryMapper odmMock;
|
||||
@@ -46,7 +46,7 @@ public class AnnotationConfigTests {
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@ImportResource("classpath:/ldap-annotation-config.xml")
|
||||
@ImportResource("classpath:/infrastructure.xml")
|
||||
@EnableLdapRepositories(basePackageClasses = DummyLdapRepository.class)
|
||||
static class Config {}
|
||||
}
|
||||
|
||||
@@ -36,8 +36,8 @@ import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
|
||||
* @author Mattias Hellborg Arthursson
|
||||
* @author Eddu Melendez
|
||||
*/
|
||||
@ContextConfiguration("classpath:/query-test.xml")
|
||||
public class PartTreeLdapRepositoryQueryTest extends AbstractJUnit4SpringContextTests {
|
||||
@ContextConfiguration
|
||||
public class PartTreeLdapRepositoryQueryTests extends AbstractJUnit4SpringContextTests {
|
||||
|
||||
@Autowired private LdapTemplate ldapTemplate;
|
||||
private Class<?> targetClass;
|
||||
@@ -29,7 +29,7 @@ import com.querydsl.core.types.Expression;
|
||||
* @author Mattias Hellborg Arthursson
|
||||
* @author Eddu Melendez
|
||||
*/
|
||||
public class QueryDslFilterGeneratorTest {
|
||||
public class QueryDslFilterGeneratorTests {
|
||||
|
||||
private LdapSerializer tested;
|
||||
private QPerson person;
|
||||
Reference in New Issue
Block a user