コード例 #1
0
  /**
   * @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);
    }
  }
コード例 #2
0
 protected void addSetting(PersistedRoles setting) throws Exception {
   mapExpectedSets.put(setting.getAddressMatch(), setting);
   journal.storeSecurityRoles(setting);
 }