use of org.jaffa.rules.realm.RealmRepository in project jaffa-framework by jaffa-projects.
the class RealmRepositoryTest method testAddRealm.
/**
* Registering a Rule should behave as though it were loaded from an XML element.
*/
@Test
public void testAddRealm() {
Realm realm = new Realm("x");
realm.setSource("s");
RealmRepository target = RealmRepository.instance();
target.addRealm(realm);
List<Realm> actual = target.getRealmsBySource("s");
assertEquals(1, actual.size());
assertSame(realm, actual.get(0));
}
Aggregations