Skip to content

Commit

Permalink
FIxed broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fickludd committed Sep 12, 2016
1 parent 7f914e3 commit eaefb0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import java.util.Collections;
import java.util.List;

import com.google.common.base.Charsets;
import org.apache.commons.io.Charsets;
import org.junit.Rule;
import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public void shouldWarnAboutUserSearchBaseBeingEmpty() throws Exception
assertException( () -> new LdapRealm( config, securityLog ), IllegalArgumentException.class,
"Illegal LDAP user search settings, see security log for details." );

verify( securityLog ).warn( contains( "LDAP user search base is empty." ) );
verify( securityLog ).error( contains( "LDAP user search base is empty." ) );
}

@Test
Expand All @@ -266,7 +266,7 @@ public void shouldWarnAboutGroupMembershipsBeingEmpty() throws Exception
assertException( () -> new LdapRealm( config, securityLog ), IllegalArgumentException.class,
"Illegal LDAP user search settings, see security log for details." );

verify( securityLog ).warn( contains( "LDAP group membership attribute names are empty. " +
verify( securityLog ).error( contains( "LDAP group membership attribute names are empty. " +
"Authorization will not be possible." ) );
}

Expand Down

0 comments on commit eaefb0e

Please sign in to comment.