KEYCLOAK-9262 Skip SAMLFilterServletAdapterTest for jdk7

This commit is contained in:
vramik 2019-01-08 14:22:54 +01:00 committed by Stian Thorgersen
parent 7f5816ab74
commit 0602a88fcc

View file

@ -1,7 +1,9 @@
package org.keycloak.testsuite.adapter.servlet; package org.keycloak.testsuite.adapter.servlet;
import org.junit.After; import org.junit.After;
import org.junit.Assume;
import org.junit.Before; import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore; import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.keycloak.testsuite.arquillian.annotation.AppServerContainer; import org.keycloak.testsuite.arquillian.annotation.AppServerContainer;
@ -21,6 +23,12 @@ import org.keycloak.testsuite.arquillian.containers.ContainerConstants;
filterDependency = "org.keycloak:keycloak-saml-servlet-filter-adapter") filterDependency = "org.keycloak:keycloak-saml-servlet-filter-adapter")
public class SAMLFilterServletAdapterTest extends SAMLServletAdapterTest { public class SAMLFilterServletAdapterTest extends SAMLServletAdapterTest {
@BeforeClass
public static void enabled() {
String appServerJavaHome = System.getProperty("app.server.java.home", "");
Assume.assumeFalse(appServerJavaHome.contains("1.7") || appServerJavaHome.contains("ibm-java-70"));
}
@Before @Before
public void checkRoles() { public void checkRoles() {
badClientSalesPostSigServletPage.checkRoles(true); badClientSalesPostSigServletPage.checkRoles(true);