Skip to content

Commit

Permalink
connector test runs with mdb.
Browse files Browse the repository at this point in the history
Signed-off-by: Gurunandan Rao <[email protected]>
  • Loading branch information
gurunrao committed Jan 2, 2025
1 parent 2c0c9b9 commit ae730b3
Show file tree
Hide file tree
Showing 110 changed files with 952 additions and 31,141 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public static EnterpriseArchive createDeploymentVehicle(@ArquillianResource Test
JavaArchive annotations_ejb_vehicle_client = ShrinkWrap.create(JavaArchive.class, "annotations_ejb_vehicle_client.jar");
// The class files
annotations_ejb_vehicle_client.addClasses(
com.sun.ts.tests.connector.annotations.anno.annotationClient.class,
com.sun.ts.tests.common.vehicle.VehicleRunnable.class,
com.sun.ts.tests.common.vehicle.VehicleRunnerFactory.class,
com.sun.ts.tests.common.vehicle.ejb.EJBVehicleRemote.class,
Expand Down Expand Up @@ -118,7 +119,7 @@ public static EnterpriseArchive createDeploymentVehicle(@ArquillianResource Test
annotations_ejb_vehicle_ejb.addAsManifestResource(ejbResURL1, "ejb-jar.xml");
}
// The sun-ejb-jar.xml file
ejbResURL1 = annotationClient.class.getResource("annotations_jsp_vehicle_web.war.sun-web.xml");
ejbResURL1 = annotationClient.class.getResource("annotations_ejb_vehicle_ejb.jar.sun-ejb-jar.xml");
if(ejbResURL1 != null) {
annotations_ejb_vehicle_ejb.addAsManifestResource(ejbResURL1, "sun-ejb-jar.xml");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static EnterpriseArchive createDeploymentVehicle(@ArquillianResource Test
com.sun.ts.tests.common.vehicle.VehicleClient.class
);
// The web.xml descriptor
URL warResURL = annotationClient.class.getResource("annotations_ejb_vehicle_ejb.xml");
URL warResURL = annotationClient.class.getResource("annotations_jsp_vehicle_web.xml");
if(warResURL != null) {
annotations_jsp_vehicle_web.addAsWebInfResource(warResURL, "web.xml");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<res-ref-name>eis/whitebox-anno_no_md</res-ref-name>
<jndi-name>eis/whitebox-anno_no_md</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<pass-by-reference>false</pass-by-reference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<res-ref-name>eis/whitebox-anno_no_md</res-ref-name>
<jndi-name>eis/whitebox-anno_no_md</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<class-loader delegate="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<res-ref-name>eis/whitebox-anno_no_md</res-ref-name>
<jndi-name>eis/whitebox-anno_no_md</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<class-loader delegate="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public static EnterpriseArchive createDeploymentVehicle(@ArquillianResource Test
JavaArchive mdcomplete_ejb_vehicle_client = ShrinkWrap.create(JavaArchive.class, "mdcomplete_ejb_vehicle_client.jar");
// The class files
mdcomplete_ejb_vehicle_client.addClasses(
com.sun.ts.tests.connector.annotations.mdcomplete.Client.class,
com.sun.ts.tests.common.vehicle.VehicleRunnable.class,
com.sun.ts.tests.common.vehicle.VehicleRunnerFactory.class,
com.sun.ts.tests.common.vehicle.ejb.EJBVehicleRemote.class,
Expand All @@ -89,7 +90,7 @@ public static EnterpriseArchive createDeploymentVehicle(@ArquillianResource Test
// The sun-application-client.xml file need to be added or should this be in in the vendor Arquillian extension?
resURL = Client.class.getResource("//com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.jar.sun-application-client.xml");
if(resURL != null) {
mdcomplete_ejb_vehicle_client.addAsManifestResource(resURL, "application-client.xml");
mdcomplete_ejb_vehicle_client.addAsManifestResource(resURL, "sun-application-client.xml");
}
mdcomplete_ejb_vehicle_client.addAsManifestResource(new StringAsset("Main-Class: com.sun.ts.tests.common.vehicle.VehicleClient\n"), "MANIFEST.MF");
// Call the archive processor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<res-ref-name>eis/whitebox-mdcomplete</res-ref-name>
<jndi-name>eis/whitebox-mdcomplete</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<pass-by-reference>false</pass-by-reference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<res-ref-name>eis/whitebox-mdcomplete</res-ref-name>
<jndi-name>eis/whitebox-mdcomplete</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<class-loader delegate="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<res-ref-name>eis/whitebox-mdcomplete</res-ref-name>
<jndi-name>eis/whitebox-mdcomplete</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<class-loader delegate="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ public static EnterpriseArchive createDeploymentVehicle(@ArquillianResource Test
com.sun.ts.lib.harness.EETest.class,
com.sun.ts.lib.harness.ServiceEETest.class,
com.sun.ts.lib.harness.EETest.SetupException.class,
com.sun.ts.tests.common.vehicle.VehicleClient.class
com.sun.ts.tests.common.vehicle.VehicleClient.class,
com.sun.ts.tests.connector.annotations.partialanno.paClient.class
);
// The application-client.xml descriptor
URL resURL = paClient.class.getResource("mdcomplete_ejb_vehicle_client.xml");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
<res-ref-name>eis/whitebox-mixedmode</res-ref-name>
<jndi-name>eis/whitebox-mixedmode</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<resource-ref>
<res-ref-name>eis/whitebox-multianno</res-ref-name>
<jndi-name>eis/whitebox-multianno</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<pass-by-reference>false</pass-by-reference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
<res-ref-name>eis/whitebox-mixedmode</res-ref-name>
<jndi-name>eis/whitebox-mixedmode</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<resource-ref>
<res-ref-name>eis/whitebox-multianno</res-ref-name>
<jndi-name>eis/whitebox-multianno</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<class-loader delegate="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
<res-ref-name>eis/whitebox-mixedmode</res-ref-name>
<jndi-name>eis/whitebox-mixedmode</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<resource-ref>
<res-ref-name>eis/whitebox-multianno</res-ref-name>
<jndi-name>eis/whitebox-multianno</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<class-loader delegate="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public static EnterpriseArchive createDeploymentVehicle(@ArquillianResource Test
JavaArchive connManager_ejb_vehicle_client = ShrinkWrap.create(JavaArchive.class, "connManager_ejb_vehicle_client.jar");
// The class files
connManager_ejb_vehicle_client.addClasses(
com.sun.ts.tests.connector.connManager.connManagerClient1.class,
com.sun.ts.tests.common.vehicle.VehicleRunnable.class,
com.sun.ts.tests.common.vehicle.VehicleRunnerFactory.class,
com.sun.ts.tests.common.vehicle.ejb.EJBVehicleRemote.class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,24 @@
<res-ref-name>eis/whitebox-tx</res-ref-name>
<jndi-name>eis/whitebox-tx</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<resource-ref>
<res-ref-name>eis/whitebox-notx</res-ref-name>
<jndi-name>eis/whitebox-notx</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<resource-ref>
<res-ref-name>eis/whitebox-xa</res-ref-name>
<jndi-name>eis/whitebox-xa</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<resource-ref>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,24 @@
<res-ref-name>eis/whitebox-tx</res-ref-name>
<jndi-name>eis/whitebox-tx</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<resource-ref>
<res-ref-name>eis/whitebox-notx</res-ref-name>
<jndi-name>eis/whitebox-notx</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<resource-ref>
<res-ref-name>eis/whitebox-xa</res-ref-name>
<jndi-name>eis/whitebox-xa</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<resource-ref>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,24 @@
<res-ref-name>eis/whitebox-tx</res-ref-name>
<jndi-name>eis/whitebox-tx</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<resource-ref>
<res-ref-name>eis/whitebox-notx</res-ref-name>
<jndi-name>eis/whitebox-notx</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<resource-ref>
<res-ref-name>eis/whitebox-xa</res-ref-name>
<jndi-name>eis/whitebox-xa</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<resource-ref>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<res-ref-name>eis/ejb_Deployment_whitebox-tx.rar</res-ref-name>
<jndi-name>eis/ejb_Deployment_whitebox-tx.rar</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<pass-by-reference>false</pass-by-reference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public static EnterpriseArchive createDeploymentVehicle(@ArquillianResource Test
JavaArchive localTx_conn_ejb_vehicle_client = ShrinkWrap.create(JavaArchive.class, "localTx_conn_ejb_vehicle_client.jar");
// The class files
localTx_conn_ejb_vehicle_client.addClasses(
com.sun.ts.tests.connector.localTx.connection.connectionClient1.class,
com.sun.ts.tests.common.vehicle.VehicleRunnable.class,
com.sun.ts.tests.common.vehicle.VehicleRunnerFactory.class,
com.sun.ts.tests.common.vehicle.ejb.EJBVehicleRemote.class,
Expand All @@ -82,12 +83,12 @@ public static EnterpriseArchive createDeploymentVehicle(@ArquillianResource Test
com.sun.ts.tests.common.vehicle.VehicleClient.class
);
// The application-client.xml descriptor
URL resURL = connectionClient1.class.getResource("/com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.xml");
URL resURL = connectionClient1.class.getResource("localTx_conn_ejb_vehicle_client.xml");
if(resURL != null) {
localTx_conn_ejb_vehicle_client.addAsManifestResource(resURL, "application-client.xml");
}
// The sun-application-client.xml file need to be added or should this be in in the vendor Arquillian extension?
resURL = connectionClient1.class.getResource("//com/sun/ts/tests/common/vehicle/ejb/ejb_vehicle_client.jar.sun-application-client.xml");
resURL = connectionClient1.class.getResource("localTx_conn_ejb_vehicle_client.jar.sun-application-client.xml");
if(resURL != null) {
localTx_conn_ejb_vehicle_client.addAsManifestResource(resURL, "application-client.xml");
}
Expand All @@ -113,12 +114,12 @@ public static EnterpriseArchive createDeploymentVehicle(@ArquillianResource Test
com.sun.ts.tests.common.vehicle.ejb.EJBVehicle.class
);
// The ejb-jar.xml descriptor
URL ejbResURL1 = connectionClient1.class.getResource("/ejb_vehicle_ejb.xml");
URL ejbResURL1 = connectionClient1.class.getResource("localTx_conn_ejb_vehicle_ejb.xml");
if(ejbResURL1 != null) {
localTx_conn_ejb_vehicle_ejb.addAsManifestResource(ejbResURL1, "ejb-jar.xml");
}
// The sun-ejb-jar.xml file
ejbResURL1 = connectionClient1.class.getResource("/ejb_vehicle_ejb.jar.sun-ejb-jar.xml");
ejbResURL1 = connectionClient1.class.getResource("localTx_conn_ejb_vehicle_ejb.jar.sun-ejb-jar.xml");
if(ejbResURL1 != null) {
localTx_conn_ejb_vehicle_ejb.addAsManifestResource(ejbResURL1, "sun-ejb-jar.xml");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<res-ref-name>eis/whitebox-tx</res-ref-name>
<jndi-name>eis/whitebox-tx</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<resource-ref>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<res-ref-name>eis/whitebox-tx</res-ref-name>
<jndi-name>eis/whitebox-tx</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<resource-ref>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<res-ref-name>eis/whitebox-tx</res-ref-name>
<jndi-name>eis/whitebox-tx</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<resource-ref>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public static EnterpriseArchive createDeploymentVehicle(@ArquillianResource Test
JavaArchive localTx_event_ejb_vehicle_client = ShrinkWrap.create(JavaArchive.class, "localTx_event_ejb_vehicle_client.jar");
// The class files
localTx_event_ejb_vehicle_client.addClasses(
com.sun.ts.tests.connector.localTx.event.eventClient1.class,
com.sun.ts.tests.common.vehicle.VehicleRunnable.class,
com.sun.ts.tests.common.vehicle.VehicleRunnerFactory.class,
com.sun.ts.tests.common.vehicle.ejb.EJBVehicleRemote.class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<res-ref-name>eis/whitebox-tx</res-ref-name>
<jndi-name>eis/whitebox-tx</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<pass-by-reference>false</pass-by-reference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<res-ref-name>eis/whitebox-tx</res-ref-name>
<jndi-name>eis/whitebox-tx</jndi-name>
<default-resource-principal>
<name>rauser1</name>
<password>rapassword1</password>
<name>cts1</name>
<password>cts1</password>
</default-resource-principal>
</resource-ref>
<class-loader delegate="true"/>
Expand Down
Loading

0 comments on commit ae730b3

Please sign in to comment.