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:
Mark Paluch
2016-12-06 10:15:26 +01:00
parent 39b6b4d6af
commit ba9f653c95
9 changed files with 37 additions and 31 deletions

View File

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

View File

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

View File

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

View File

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