DATACMNS-634 - Polishing.

Simplified type traversal in Repositories.getRepositoryFactoryInfoFor(…) and unit tests.

Original pull request: #110.
This commit is contained in:
Oliver Gierke
2015-01-20 17:46:00 +01:00
parent 9f21cc2f28
commit 2c772d60de
2 changed files with 11 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2013 the original author or authors.
* Copyright 2012-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except
@@ -113,9 +113,7 @@ public class RepositoriesUnitTests {
*/
@Test
public void findsRepositoryForSubTypes() {
Repositories repositories = new Repositories(context);
assertThat(repositories.getPersistentEntity(AdvancedAddress.class), is(notNullValue()));
assertThat(new Repositories(context).getPersistentEntity(AdvancedAddress.class), is(notNullValue()));
}
class Person {}