Avoid deprecated API usage in testsuite/integration-arquillian/util (#24870)
Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
This commit is contained in:
parent
18387c3b33
commit
cd1e0e06c6
2 changed files with 4 additions and 3 deletions
|
@ -40,7 +40,8 @@ import org.keycloak.testsuite.utils.arquillian.ContainerConstants;
|
|||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.hamcrest.Matchers.anyOf;
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
import static org.hamcrest.Matchers.isEmptyString;
|
||||
import static org.hamcrest.Matchers.emptyString;
|
||||
import static org.hamcrest.Matchers.is;
|
||||
import static org.hamcrest.Matchers.not;
|
||||
|
||||
public class FuseUtils {
|
||||
|
@ -268,7 +269,7 @@ public class FuseUtils {
|
|||
private static Matcher<String> resultToMatcher(Result result) {
|
||||
switch (result) {
|
||||
case EMPTY:
|
||||
return isEmptyString();
|
||||
return is(emptyString());
|
||||
case OK:
|
||||
return not(anyOf(
|
||||
containsString("Insufficient credentials"),
|
||||
|
|
|
@ -134,7 +134,7 @@ public class UndertowDeployerHelper {
|
|||
|
||||
});
|
||||
|
||||
return new URLResource(myResourceUrl, myResourceUrl.openConnection(), path);
|
||||
return new URLResource(myResourceUrl, path);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue