Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCK : Get hostname and port number injected using ArquillianResource url #1243

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,6 @@ public JAXRSClientIT() {
setClientAndWebTarget();
}

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

protected transient WebTarget target;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,6 @@ public class JAXRSClientIT extends JAXRSCommonClient {

private static final long serialVersionUID = 7395392827433641768L;

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: newClientNoParamTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,6 @@ public class JAXRSClientIT extends JAXRSCommonClient {

private static final long serialVersionUID = 8883841555516513076L;

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: abortWithTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,6 @@ public class JAXRSClientIT extends JAXRSCommonClient {

private static final long serialVersionUID = -9134505693194656037L;

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: getAllowedMethodsTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,6 @@ public class JAXRSClientIT extends JAXRSCommonClient {

private static final long serialVersionUID = 3872631127958907381L;

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: entityMediaTypeTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,6 @@ public class JAXRSClientIT extends JAXRSCommonClient {

private static final long serialVersionUID = -7647322937577043460L;

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: invokePlainTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,6 @@ public class JAXRSClientIT extends JAXRSCommonClient {

private static final int WAIT_SECONDS = 5;

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: completedTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ public JAXRSClientIT() {
setContextRoot("/jaxrs_api_rs_processingexception_web");
}

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: constructorWithRuntimeExceptionTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,6 @@ public class JAXRSClientIT extends JAXRSCommonClient {

private static final String SLASHED = "%42%5A%61%7a/%%21";

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: getUriTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ public class JAXRSClientIT extends JAXRSCommonClient {

protected static final String HOST = "www.jcp.org";

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: constructorTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,6 @@ public class JAXRSClientIT extends JAXRSCommonClient {

private static final long serialVersionUID = 1501029701397272718L;

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: checkBindingPriorityHigherRegisteredFirstTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,6 @@ public class JAXRSClientIT extends JAXRSCommonClient {

protected static final String HOST = "www.jcp.org";

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: constructorStatusTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@ public class JAXRSClientIT extends JAXRSCommonClient {

private static final long serialVersionUID = 295711558453778471L;

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: constructorTest1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,6 @@
public class BuilderClientIT
extends JAXRSClientIT {

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: statusTest1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,6 @@ public class JAXRSClientIT extends JAXRSCommonClient {
"Network Authentication Required" };


@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @class.setup_props: webServerHost; webServerPort;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@ public class JAXRSClientIT extends JAXRSCommonClient {
private static final long serialVersionUID = -4533695636737308500L;


@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

// name it to ensure sorting
static final int[] status_codes = { 200, 201, 202, 204, 205, 206, 301, 302,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,6 @@ public JAXRSClientIT() {
sb = new StringBuilder();
}

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: buildTest1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -50,18 +50,14 @@ public class JAXRSClientIT extends ReaderClient<ContextOperation> {

private static final long serialVersionUID = -8828149277776372718L;

public JAXRSClientIT() {
setup();
}

@BeforeEach
jansupol marked this conversation as resolved.
Show resolved Hide resolved
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
public void setup() {
// Only the values are verified, using verifySettings() in JaxrWebTestCase.java
// but the URL with these values is not required to work.
// TODO: remove validation of these values for the tests in this file.
_hostname = "localhost";
_port = 8080;
}

/*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -38,20 +38,21 @@ public class JAXRSClientIT extends ReaderClient<ContextOperation> {

private static final long serialVersionUID = -6962070973647934636L;

public JAXRSClientIT() {
setup();
}

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}
public void setup() {

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
// Only the values are verified, using verifySettings() in JaxrWebTestCase.java
// but the URL with these values is not required to work.
// TODO: remove validation of these values for the tests in this file.
_hostname = "localhost";
_port = 8080;

String property = System.getProperty("cts.tmp", "/tmp");
if (property != null)
System.setProperty("java.io.tmpdir", property);
}


/*
* @testName: getHeadersOperationSetTest
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,6 @@ public JAXRSClientIT() {
delegate = RuntimeDelegate.getInstance();
}

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: createEndpointTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@ public class JAXRSClientIT extends JAXRSDelegateClient {

private static final long serialVersionUID = -5586431064207012301L;

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: askForTckRuntimeDelegateGivenBySetInstanceTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ public class JAXRSClientIT extends JAXRSCommonClient {

protected static final String HOST = "www.jcp.org";

@BeforeEach
void logStartTest(TestInfo testInfo) {
TestUtil.logMsg("STARTING TEST : "+testInfo.getDisplayName());
}

@AfterEach
void logFinishTest(TestInfo testInfo) {
TestUtil.logMsg("FINISHED TEST : "+testInfo.getDisplayName());
}

/*
* @testName: constructorTest
Expand Down
Loading