Fix it right this time. (Hard to tell for sure since I can't reproduce

locally)
This commit is contained in:
Stan Silvert 2016-02-06 14:43:18 -05:00
parent d7295473c3
commit 228b24a1c5
3 changed files with 2 additions and 3 deletions

View file

@ -17,6 +17,7 @@
package org.keycloak.testsuite.event;
import java.util.Collections;
import org.junit.Before;
import org.keycloak.admin.client.resource.RealmResource;
import org.keycloak.representations.idm.RealmEventsConfigRepresentation;
@ -37,6 +38,7 @@ public abstract class AbstractEventTest extends AbstractAuthTest {
configRep.setAdminEventsDetailsEnabled(false);
configRep.setAdminEventsEnabled(false);
configRep.setEventsEnabled(false);
configRep.setEnabledEventTypes(Collections.EMPTY_LIST); // resets to all types
saveConfig();
}

View file

@ -39,7 +39,6 @@ public class EventConfigTest extends AbstractEventTest {
assertFalse(configRep.isAdminEventsDetailsEnabled());
assertFalse(configRep.isAdminEventsEnabled());
assertFalse(configRep.isEventsEnabled());
configRep.setEnabledEventTypes(Collections.EMPTY_LIST); // resets to all types
List<String> eventListeners = configRep.getEventsListeners();
assertEquals(1, eventListeners.size());

View file

@ -18,7 +18,6 @@
package org.keycloak.testsuite.event;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.jboss.arquillian.graphene.page.Page;
import org.junit.Before;
@ -42,7 +41,6 @@ public class LoginEventsTest extends AbstractEventTest {
@Before
public void init() {
configRep.setEventsEnabled(true);
configRep.setEnabledEventTypes(Collections.EMPTY_LIST); // resets to all types
saveConfig();
testRealmResource().clearEvents();
}