From c0d3d9cf6b185d6544c2f2a3042564e3f9686767 Mon Sep 17 00:00:00 2001 From: mhajas Date: Tue, 12 Jan 2016 12:52:26 +0100 Subject: [PATCH] Remove unnecessary lines --- .../example/AbstractJSConsoleExampleAdapterTest.java | 2 -- .../adapter/servlet/AbstractDemoServletsAdapterTest.java | 6 +----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/AbstractJSConsoleExampleAdapterTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/AbstractJSConsoleExampleAdapterTest.java index 32bda73fe4..2310ba28bb 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/AbstractJSConsoleExampleAdapterTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/example/AbstractJSConsoleExampleAdapterTest.java @@ -87,8 +87,6 @@ public abstract class AbstractJSConsoleExampleAdapterTest extends AbstractExampl pause(1000); - //pause(5555555); - jsConsoleExamplePage.logIn(); testRealmLoginPage.form().login("user", "invalid-password"); assertCurrentUrlDoesntStartWith(jsConsoleExamplePage); diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/AbstractDemoServletsAdapterTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/AbstractDemoServletsAdapterTest.java index 14bbe13ef1..80dada580b 100755 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/AbstractDemoServletsAdapterTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/adapter/servlet/AbstractDemoServletsAdapterTest.java @@ -209,7 +209,7 @@ public abstract class AbstractDemoServletsAdapterTest extends AbstractServletsAd demoRealmRep.setSsoSessionIdleTimeout(1); testRealmResource().update(demoRealmRep); -// Thread.sleep(20/00); +// Thread.sleep(2000); productPortal.navigateTo(); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); @@ -323,8 +323,6 @@ public abstract class AbstractDemoServletsAdapterTest extends AbstractServletsAd public void testBadUser() { Client client = ClientBuilder.newClient(); URI uri = OIDCLoginProtocolService.tokenUrl(authServerPage.createUriBuilder()).build("demo"); - System.out.println("URL:" + uri); - //pause(8555); WebTarget target = client.target(uri); String header = BasicAuthHelper.createHeader("customer-portal", "password"); Form form = new Form(); @@ -334,7 +332,6 @@ public abstract class AbstractDemoServletsAdapterTest extends AbstractServletsAd Response response = target.request() .header(HttpHeaders.AUTHORIZATION, header) .post(Entity.form(form)); - //pause(55555555); assertEquals(401, response.getStatus()); response.close(); client.close(); @@ -364,7 +361,6 @@ public abstract class AbstractDemoServletsAdapterTest extends AbstractServletsAd public void testAuthenticated() { // test login to customer-portal which does a bearer request to customer-db securePortal.navigateTo(); - //pause(5555555); assertCurrentUrlStartsWithLoginUrlOf(testRealmPage); testRealmLoginPage.form().login("bburke@redhat.com", "password"); assertCurrentUrlEquals(securePortal);