Author: senaka
Date: Wed Oct 22 08:41:30 2008
New Revision: 707104
URL: http://svn.apache.org/viewvc?rev=707104&view=rev
Log:
Adding more test logic.
Modified:
webservices/commons/trunk/scratch/senaka/sci-flex/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/TransportTestSuiteBuilder.java
webservices/commons/trunk/scratch/senaka/sci-flex/transport/modules/tests/src/test/java/org/apache/axis2/transport/jms/JMSTransportTest.java
Modified:
webservices/commons/trunk/scratch/senaka/sci-flex/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/TransportTestSuiteBuilder.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/scratch/senaka/sci-flex/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/TransportTestSuiteBuilder.java?rev=707104&r1=707103&r2=707104&view=diff
==============================================================================
---
webservices/commons/trunk/scratch/senaka/sci-flex/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/TransportTestSuiteBuilder.java
(original)
+++
webservices/commons/trunk/scratch/senaka/sci-flex/transport/modules/testkit/src/main/java/org/apache/axis2/transport/testkit/TransportTestSuiteBuilder.java
Wed Oct 22 08:41:30 2008
@@ -115,13 +115,13 @@
private final ResourceList<AsyncTestClient<XMLMessage>> xmlAsyncClients =
new ResourceList<AsyncTestClient<XMLMessage>>();
private final ResourceList<AsyncTestClient<RESTMessage>> restAsyncClients
= new ResourceList<AsyncTestClient<RESTMessage>>();
private final ResourceList<AsyncTestClient<String>> stringAsyncClients =
new ResourceList<AsyncTestClient<String>>();
-/* private final ResourceList<AsyncTestClient<Map>> mapAsyncClients = new
ResourceList<AsyncTestClient<Map>>();*/
+ private final ResourceList<AsyncTestClient<Map>> mapAsyncClients = new
ResourceList<AsyncTestClient<Map>>();
private final ResourceList<AsyncEndpoint<byte[]>> byteAsyncEndpoints = new
ResourceList<AsyncEndpoint<byte[]>>();
private final ResourceList<AsyncEndpoint<XMLMessage>> xmlAsyncEndpoints =
new ResourceList<AsyncEndpoint<XMLMessage>>();
private final ResourceList<AsyncEndpoint<RESTMessage>> restAsyncEndpoints
= new ResourceList<AsyncEndpoint<RESTMessage>>();
private final ResourceList<AsyncEndpoint<String>> stringAsyncEndpoints =
new ResourceList<AsyncEndpoint<String>>();
-/* private final ResourceList<AsyncEndpoint<Map>> mapAsyncEndpoints = new
ResourceList<AsyncEndpoint<Map>>();*/
+ private final ResourceList<AsyncEndpoint<Map>> mapAsyncEndpoints = new
ResourceList<AsyncEndpoint<Map>>();
private final ResourceList<RequestResponseChannel> requestResponseChannels
= new ResourceList<RequestResponseChannel>();
@@ -169,7 +169,7 @@
}
public void addMapAsyncTestClient(AsyncTestClient<Map> client, Object...
relatedResources) {
-/* mapAsyncClients.add(client, relatedResources);*/
+ mapAsyncClients.add(client, relatedResources);
}
public void addAxisAsyncEndpoint(AsyncEndpoint<AxisMessage> endpoint,
Object... relatedResources) {
@@ -190,7 +190,7 @@
}
public void addMapAsyncEndpoint(AsyncEndpoint<Map> endpoint, Object...
relatedResources) {
-/* mapAsyncEndpoints.add(endpoint, relatedResources);*/
+ mapAsyncEndpoints.add(endpoint, relatedResources);
}
public void addRequestResponseChannel(RequestResponseChannel channel,
Object... relatedResources) {
@@ -261,12 +261,12 @@
// addTest(new RESTTestCase(env, channel, client, endpoint,
restTestMessage2));
}
}
- /*for (ResourceRelation<AsyncTestClient<Map>> client :
mapAsyncClients) {
+ for (ResourceRelation<AsyncTestClient<Map>> client :
mapAsyncClients) {
for (ResourceRelation<AsyncEndpoint<Map>> endpoint :
mapAsyncEndpoints) {
Object[] resources = merge(env, channel, client, endpoint);
suite.addTest(new
MapTestCase(channel.getPrimaryResource(), client.getPrimaryResource(),
endpoint.getPrimaryResource(), resources));
}
- }*/
+ }
}
for (ResourceRelation<RequestResponseChannel> channel :
requestResponseChannels) {
for
(ResourceRelation<RequestResponseTestClient<XMLMessage,XMLMessage>> client :
xmlRequestResponseClients) {
Modified:
webservices/commons/trunk/scratch/senaka/sci-flex/transport/modules/tests/src/test/java/org/apache/axis2/transport/jms/JMSTransportTest.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/scratch/senaka/sci-flex/transport/modules/tests/src/test/java/org/apache/axis2/transport/jms/JMSTransportTest.java?rev=707104&r1=707103&r2=707104&view=diff
==============================================================================
---
webservices/commons/trunk/scratch/senaka/sci-flex/transport/modules/tests/src/test/java/org/apache/axis2/transport/jms/JMSTransportTest.java
(original)
+++
webservices/commons/trunk/scratch/senaka/sci-flex/transport/modules/tests/src/test/java/org/apache/axis2/transport/jms/JMSTransportTest.java
Wed Oct 22 08:41:30 2008
@@ -74,7 +74,7 @@
builder.addAxisAsyncTestClient(new AxisAsyncTestClient(), new
JMSAxisTestClientConfigurator(JMSConstants.JMS_TEXT_MESSAGE));
builder.addByteArrayAsyncTestClient(new
JMSAsyncClient<byte[]>(JMSBytesMessageFactory.INSTANCE));
builder.addStringAsyncTestClient(new
JMSAsyncClient<String>(JMSTextMessageFactory.INSTANCE));
-/* builder.addMapAsyncTestClient(new
JMSAsyncClient<Map>(JMSMapMessageFactory.INSTANCE));*/
+ builder.addMapAsyncTestClient(new
JMSAsyncClient<Map>(JMSMapMessageFactory.INSTANCE));
builder.addAxisAsyncEndpoint(new AxisAsyncEndpoint());