@Before public void setConfigRep() { RealmResource testRsc = testRealmResource(); configRep = testRsc.getRealmEventsConfig(); configRep.setAdminEventsDetailsEnabled(false); configRep.setAdminEventsEnabled(false); configRep.setEventsEnabled(false); configRep.setEnabledEventTypes(Collections.<String>emptyList()); // resets to all types saveConfig(); }
protected void saveConfig() { RealmResource testRsc = testRealmResource(); testRsc.updateRealmEventsConfig(configRep); configRep = testRsc.getRealmEventsConfig(); }