/** * @param journal * @throws Exception */ private void checkSettings() throws Exception { List<PersistedRoles> listSetting = journal.recoverPersistedRoles(); assertEquals(mapExpectedSets.size(), listSetting.size()); for (PersistedRoles el : listSetting) { PersistedRoles el2 = mapExpectedSets.get(el.getAddressMatch()); assertEquals(el, el2); } }
protected void addSetting(PersistedRoles setting) throws Exception { mapExpectedSets.put(setting.getAddressMatch(), setting); journal.storeSecurityRoles(setting); }