Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import org.apache.cxf.bus.spring.SpringBusFactory;
import org.apache.cxf.testutil.common.AbstractBusTestServerBase;

public class STSServer extends AbstractBusTestServerBase {
public class DelegationSTSServer extends AbstractBusTestServerBase {

protected void run() {
setBus(new SpringBusFactory().createBus(getClass().getResource("cxf-sts-transport.xml")));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
*/
public class SAMLDelegationTest extends AbstractBusClientServerTestBase {

private static final String STSPORT = allocatePort(STSServer.class);
private static final String STSPORT = allocatePort(DelegationSTSServer.class);

private static final String SAML2_TOKEN_TYPE =
"http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0";
Expand All @@ -80,7 +80,7 @@ public static void startServers() throws Exception {
"Server failed to launch",
// run the server in the same process
// set this to false to fork
launchServer(STSServer.class, true)
launchServer(DelegationSTSServer.class, true)
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,19 @@
<property name="relationships" ref="relationships"/>
<property name="samlRealmCodec" ref="samlRealmCodec"/>
</bean>
<jaxws:endpoint xmlns:ns1="http://docs.oasis-open.org/ws-sx/ws-trust/200512/" id="transportSTS" implementor="#transportSTSProviderBean" address="https://localhost:${testutil.ports.STSServer}/SecurityTokenService/Transport" wsdlLocation="src/test/resources/org/apache/cxf/systest/sts/delegation/ws-trust-1.4-service.wsdl" serviceName="ns1:SecurityTokenService" endpointName="ns1:Transport_Port" depends-on="ClientAuthHttpsSettings">
<jaxws:endpoint xmlns:ns1="http://docs.oasis-open.org/ws-sx/ws-trust/200512/" id="transportSTS" implementor="#transportSTSProviderBean" address="https://localhost:${testutil.ports.DelegationSTSServer}/SecurityTokenService/Transport" wsdlLocation="src/test/resources/org/apache/cxf/systest/sts/delegation/ws-trust-1.4-service.wsdl" serviceName="ns1:SecurityTokenService" endpointName="ns1:Transport_Port" depends-on="ClientAuthHttpsSettings">
<jaxws:properties>
<entry key="security.callback-handler" value="org.apache.cxf.systest.sts.common.CommonCallbackHandler"/>
</jaxws:properties>
</jaxws:endpoint>
<jaxws:endpoint xmlns:ns1="http://docs.oasis-open.org/ws-sx/ws-trust/200512/" id="transportSTSUT" implementor="#transportUTSTSProviderBean" address="https://localhost:${testutil.ports.STSServer}/SecurityTokenService/TransportUT" wsdlLocation="src/test/resources/org/apache/cxf/systest/sts/delegation/ws-trust-1.4-service.wsdl" serviceName="ns1:SecurityTokenService" endpointName="ns1:Transport_UT_Port" depends-on="ClientAuthHttpsSettings">
<jaxws:endpoint xmlns:ns1="http://docs.oasis-open.org/ws-sx/ws-trust/200512/" id="transportSTSUT" implementor="#transportUTSTSProviderBean" address="https://localhost:${testutil.ports.DelegationSTSServer}/SecurityTokenService/TransportUT" wsdlLocation="src/test/resources/org/apache/cxf/systest/sts/delegation/ws-trust-1.4-service.wsdl" serviceName="ns1:SecurityTokenService" endpointName="ns1:Transport_UT_Port" depends-on="ClientAuthHttpsSettings">
<jaxws:properties>
<entry key="security.callback-handler" value="org.apache.cxf.systest.sts.common.CommonCallbackHandler"/>
</jaxws:properties>
</jaxws:endpoint>

<httpj:engine-factory id="ClientAuthHttpsSettings" bus="cxf">
<httpj:engine port="${testutil.ports.STSServer}">
<httpj:engine port="${testutil.ports.DelegationSTSServer}">
<httpj:tlsServerParameters>
<sec:keyManagers keyPassword="sspass">
<sec:keyStore type="jks" password="sspass" resource="keys/servicestore.jks"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,24 @@
import static org.junit.Assert.assertTrue;

public class JettyWarTest extends AbstractCdiMultiAppTest {
public static class EmbeddedJettyServer extends AbstractJettyServer {
public static final int PORT = allocatePortAsInt(EmbeddedJettyServer.class);
public static class EmbeddedJettyWarServer extends AbstractJettyServer {
public static final int PORT = allocatePortAsInt(EmbeddedJettyWarServer.class);

public EmbeddedJettyServer() {
public EmbeddedJettyWarServer() {
super("/jaxrs_cdi", "/", PORT, new WebBeansConfigurationListener());
}
}

@BeforeClass
public static void startServers() throws Exception {
AbstractResourceInfo.clearAllMaps();
assertTrue("server did not launch correctly", launchServer(EmbeddedJettyServer.class, true));
assertTrue("server did not launch correctly", launchServer(EmbeddedJettyWarServer.class, true));
createStaticBus();
}

@Override
protected int getPort() {
return EmbeddedJettyServer.PORT;
return EmbeddedJettyWarServer.PORT;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,24 @@
import static org.junit.Assert.assertTrue;

public class JettyWarTest extends AbstractCdiSingleAppTest {
public static class EmbeddedJettyServer extends AbstractJettyServer {
public static final int PORT = allocatePortAsInt(EmbeddedJettyServer.class);
public static class EmbeddedJettyWarServer extends AbstractJettyServer {
public static final int PORT = allocatePortAsInt(EmbeddedJettyWarServer.class);

public EmbeddedJettyServer() {
public EmbeddedJettyWarServer() {
super("/jaxrs_cdi", "/", PORT, new WebBeansConfigurationListener());
}
}

@BeforeClass
public static void startServers() throws Exception {
AbstractResourceInfo.clearAllMaps();
assertTrue("server did not launch correctly", launchServer(EmbeddedJettyServer.class, true));
assertTrue("server did not launch correctly", launchServer(EmbeddedJettyWarServer.class, true));
createStaticBus();
}

@Override
protected int getPort() {
return EmbeddedJettyServer.PORT;
return EmbeddedJettyWarServer.PORT;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@

public class JettyWarTest extends AbstractCdiSingleAppTest {
@Ignore
public static class EmbeddedJettyServer extends AbstractJettyServer {
public static final int PORT = allocatePortAsInt(EmbeddedJettyServer.class);
public static class EmbeddedJettyWarServer extends AbstractJettyServer {
public static final int PORT = allocatePortAsInt(EmbeddedJettyWarServer.class);

public EmbeddedJettyServer() {
public EmbeddedJettyWarServer() {
super("/jaxrs_cdi", "/", PORT, new WebBeansConfigurationListener());
}
}

@BeforeClass
public static void startServers() throws Exception {
AbstractResourceInfo.clearAllMaps();
assertTrue("server did not launch correctly", launchServer(EmbeddedJettyServer.class, true));
assertTrue("server did not launch correctly", launchServer(EmbeddedJettyWarServer.class, true));
createStaticBus();
}

Expand Down Expand Up @@ -102,6 +102,6 @@ public void testConfiguredProviders() {

@Override
protected int getPort() {
return EmbeddedJettyServer.PORT;
return EmbeddedJettyWarServer.PORT;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@

public class JettyWarTest extends AbstractCdiMultiAppTest {
@Ignore
public static class EmbeddedJettyServer extends AbstractJettyServer {
public static final int PORT = allocatePortAsInt(EmbeddedJettyServer.class);
public static class EmbeddedJettyWarServer extends AbstractJettyServer {
public static final int PORT = allocatePortAsInt(EmbeddedJettyWarServer.class);

public EmbeddedJettyServer() {
public EmbeddedJettyWarServer() {
super("/jaxrs_cdi", "/", PORT, new Listener());
}
}
Expand All @@ -45,13 +45,13 @@ public EmbeddedJettyServer() {
public static void startServers() throws Exception {
AbstractResourceInfo.clearAllMaps();
System.setProperty(Container.class.getName(), JettyContainer.class.getName());
assertTrue("server did not launch correctly", launchServer(EmbeddedJettyServer.class, true));
assertTrue("server did not launch correctly", launchServer(EmbeddedJettyWarServer.class, true));
createStaticBus();
}

@Override
protected int getPort() {
return EmbeddedJettyServer.PORT;
return EmbeddedJettyWarServer.PORT;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@

public class JettyWarTest extends AbstractCdiSingleAppTest {
@Ignore
public static class EmbeddedJettyServer extends AbstractJettyServer {
public static final int PORT = allocatePortAsInt(EmbeddedJettyServer.class);
public static class EmbeddedJettyWarServer extends AbstractJettyServer {
public static final int PORT = allocatePortAsInt(EmbeddedJettyWarServer.class);

public EmbeddedJettyServer() {
public EmbeddedJettyWarServer() {
super("/jaxrs_cdi", "/", PORT, new Listener());
}
}
Expand All @@ -44,13 +44,13 @@ public EmbeddedJettyServer() {
public static void startServers() throws Exception {
AbstractResourceInfo.clearAllMaps();
System.setProperty(Container.class.getName(), JettyContainer.class.getName());
assertTrue("server did not launch correctly", launchServer(EmbeddedJettyServer.class, true));
assertTrue("server did not launch correctly", launchServer(EmbeddedJettyWarServer.class, true));
createStaticBus();
}

@Override
protected int getPort() {
return EmbeddedJettyServer.PORT;
return EmbeddedJettyWarServer.PORT;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@

public class JettyWarTest extends AbstractBookStoreCdiTest {
@Ignore
public static class EmbeddedJettyServer extends AbstractJettyServer {
public static final int PORT = allocatePortAsInt(EmbeddedJettyServer.class);
public static class EmbeddedJettyWarServer extends AbstractJettyServer {
public static final int PORT = allocatePortAsInt(EmbeddedJettyWarServer.class);

public EmbeddedJettyServer() {
public EmbeddedJettyWarServer() {
super("/jaxrs_cdi", "/", PORT, new Listener());
}
}
Expand All @@ -44,11 +44,11 @@ public EmbeddedJettyServer() {
public static void startServers() throws Exception {
AbstractResourceInfo.clearAllMaps();
System.setProperty(Container.class.getName(), JettyContainer.class.getName());
assertTrue("server did not launch correctly", launchServer(EmbeddedJettyServer.class, true));
assertTrue("server did not launch correctly", launchServer(EmbeddedJettyWarServer.class, true));
createStaticBus();
}

protected int getPort() {
return EmbeddedJettyServer.PORT;
return EmbeddedJettyWarServer.PORT;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
import static org.junit.Assert.assertTrue;

public class JAXRSClientServerUserResourceAsteriskTest extends AbstractClientServerTestBase {
public static final String PORT = allocatePort(Server.class);
public static final String PORT = allocatePort(UserResourceAsteriskServer.class);
public static final String CONTEXT = "/jetty/*/asterisk";

public static class Server extends AbstractServerTestServerBase {
public static class UserResourceAsteriskServer extends AbstractServerTestServerBase {
@Override
protected org.apache.cxf.endpoint.Server createServer(Bus bus) throws Exception {
JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
Expand Down Expand Up @@ -93,14 +93,14 @@ protected org.apache.cxf.endpoint.Server createServer(Bus bus) throws Exception
}

public static void main(String[] args) throws Exception {
new Server().start();
new UserResourceAsteriskServer().start();
}
}

@BeforeClass
public static void startServers() throws Exception {
AbstractResourceInfo.clearAllMaps();
assertTrue("server did not launch correctly", launchServer(Server.class));
assertTrue("server did not launch correctly", launchServer(UserResourceAsteriskServer.class));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@
import static org.junit.Assert.assertTrue;

public class JAXRSClientServerUserResourceDefaultTest extends AbstractBusClientServerTestBase {
public static final String PORT = allocatePort(Server.class);
public static final String PORT = allocatePort(UserResourceDefaultServer.class);

public static class Server extends AbstractServerTestServerBase {
public static class UserResourceDefaultServer extends AbstractServerTestServerBase {

@Override
protected org.apache.cxf.endpoint.Server createServer(Bus bus) throws Exception {
Expand Down Expand Up @@ -122,15 +122,15 @@ protected org.apache.cxf.endpoint.Server createServer(Bus bus) throws Exception
}

public static void main(String[] args) throws Exception {
new Server().start();
new UserResourceDefaultServer().start();
}
}

@BeforeClass
public static void startServers() throws Exception {
AbstractResourceInfo.clearAllMaps();
assertTrue("server did not launch correctly",
launchServer(Server.class, true));
launchServer(UserResourceDefaultServer.class, true));
createStaticBus();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
import static org.junit.Assert.assertTrue;

public class JAXRSClientServerUserResourceTest extends AbstractClientServerTestBase {
public static final String PORT = allocatePort(Server.class);
public static final String PORT = allocatePort(UserResourceServer.class);

public static class Server extends AbstractServerTestServerBase {
public static class UserResourceServer extends AbstractServerTestServerBase {

@Override
protected org.apache.cxf.endpoint.Server createServer(Bus bus) throws Exception {
Expand Down Expand Up @@ -93,15 +93,15 @@ protected org.apache.cxf.endpoint.Server createServer(Bus bus) throws Exception
}

public static void main(String[] args) throws Exception {
new Server().start();
new UserResourceServer().start();
}
}

@BeforeClass
public static void startServers() throws Exception {
AbstractResourceInfo.clearAllMaps();
assertTrue("server did not launch correctly",
launchServer(Server.class, true));
launchServer(UserResourceServer.class, true));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@
import static org.junit.Assert.assertEquals;

public class JAXRSUnicodeTest extends AbstractBusClientServerTestBase {
public static final int PORT = SpringServer.PORT;
public static final int PORT = SpringUnicodeServer.PORT;

@BeforeClass
public static void beforeClass() throws Exception {
// must be 'in-process' to communicate with inner class in single JVM
// and to spawn class SpringServer w/o using main() method
launchServer(SpringServer.class, true);
launchServer(SpringUnicodeServer.class, true);
}
@Ignore
public static class SpringServer extends AbstractSpringServer {
public static final int PORT = allocatePortAsInt(SpringServer.class);
public SpringServer() {
public static class SpringUnicodeServer extends AbstractSpringServer {
public static final int PORT = allocatePortAsInt(SpringUnicodeServer.class);
public SpringUnicodeServer() {
super("/jaxrs_unicode", PORT);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@
import static org.junit.Assert.assertEquals;

public class JAXRSUriInfoMatchTest extends AbstractClientServerTestBase {
public static final int PORT = SpringServer.PORT;
public static final int PORT = SpringUriInfoMatchServer.PORT;
@BeforeClass
public static void beforeClass() throws Exception {
// must be 'in-process' to communicate with inner class in single JVM
// and to spawn class SpringServer w/o using main() method
launchServer(SpringServer.class, true);
launchServer(SpringUriInfoMatchServer.class, true);
}

@Ignore
public static class SpringServer extends AbstractSpringServer {
public static final int PORT = allocatePortAsInt(SpringServer.class);
public SpringServer() {
public static class SpringUriInfoMatchServer extends AbstractSpringServer {
public static final int PORT = allocatePortAsInt(SpringUriInfoMatchServer.class);
public SpringUriInfoMatchServer() {
super("/jaxrs_uriinfo_match", "/match", PORT);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@
import static org.junit.Assert.assertEquals;

public class JAXRSUriInfoTest extends AbstractClientServerTestBase {
public static final int PORT = SpringServer.PORT;
public static final int PORT = SpringUriInfoServer.PORT;
@BeforeClass
public static void beforeClass() throws Exception {
// must be 'in-process' to communicate with inner class in single JVM
// and to spawn class SpringServer w/o using main() method
launchServer(SpringServer.class, true);
launchServer(SpringUriInfoServer.class, true);
}

@Ignore
public static class SpringServer extends AbstractSpringServer {
public static final int PORT = allocatePortAsInt(SpringServer.class);
public SpringServer() {
public static class SpringUriInfoServer extends AbstractSpringServer {
public static final int PORT = allocatePortAsInt(SpringUriInfoServer.class);
public SpringUriInfoServer() {
super("/jaxrs_uriinfo", "/app", PORT);
}
}
Expand Down
Loading
Loading