Exemplo n.º 1
0
 @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();
 }
Exemplo n.º 2
0
 protected void saveConfig() {
   RealmResource testRsc = testRealmResource();
   testRsc.updateRealmEventsConfig(configRep);
   configRep = testRsc.getRealmEventsConfig();
 }