Search in sources :

Example 1 with MotechDataRepository

use of org.motechproject.mds.repository.MotechDataRepository in project motech by motech.

the class EntityInfrastructureBuilderTest method verifyFetchDepthInRepository.

private void verifyFetchDepthInRepository(Class<?> repositoryClass, int expectedFetchDepth) throws IllegalAccessException, InstantiationException {
    MotechDataRepository repository = (MotechDataRepository) repositoryClass.newInstance();
    assertEquals(expectedFetchDepth, ReflectionTestUtils.getField(repository, "fetchDepth"));
}
Also used : MotechDataRepository(org.motechproject.mds.repository.MotechDataRepository)

Aggregations

MotechDataRepository (org.motechproject.mds.repository.MotechDataRepository)1