[jboss-svn-commits] JBL Code SVN: r36005 - in labs/jbosstm/trunk/txbridge: docs and 6 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Nov 17 12:35:18 EST 2010
Author: jhalliday
Date: 2010-11-17 12:35:17 -0500 (Wed, 17 Nov 2010)
New Revision: 36005
Removed:
labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/service/TestService.java
Modified:
labs/jbosstm/trunk/txbridge/README.txt
labs/jbosstm/trunk/txbridge/docs/TransactionBridgingGuide.odt
labs/jbosstm/trunk/txbridge/docs/TransactionBridgingGuide.pdf
labs/jbosstm/trunk/txbridge/tests/build.xml
labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/client/TestClient.java
labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/client/TestService.java
labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/junit/BasicTests.java
labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/junit/CrashRecoveryTests.java
labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/service/TestServiceImpl.java
labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/utility/TestXAResourceRecoveryHelper.java
labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/outbound/junit/BasicTests.java
labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/outbound/junit/CrashRecoveryTests.java
Log:
Make tests more location independent and update to run on AS6.0.M5. Update docs with additional text. JBTM-44
Modified: labs/jbosstm/trunk/txbridge/README.txt
===================================================================
--- labs/jbosstm/trunk/txbridge/README.txt 2010-11-17 16:15:47 UTC (rev 36004)
+++ labs/jbosstm/trunk/txbridge/README.txt 2010-11-17 17:35:17 UTC (rev 36005)
@@ -34,4 +34,4 @@
Testing:
--------
-See tests/README.txt
\ No newline at end of file
+See docs/TransactionBridgingGuide - test framework section in the design notes appendix.
\ No newline at end of file
Modified: labs/jbosstm/trunk/txbridge/docs/TransactionBridgingGuide.odt
===================================================================
(Binary files differ)
Modified: labs/jbosstm/trunk/txbridge/docs/TransactionBridgingGuide.pdf
===================================================================
(Binary files differ)
Modified: labs/jbosstm/trunk/txbridge/tests/build.xml
===================================================================
--- labs/jbosstm/trunk/txbridge/tests/build.xml 2010-11-17 16:15:47 UTC (rev 36004)
+++ labs/jbosstm/trunk/txbridge/tests/build.xml 2010-11-17 17:35:17 UTC (rev 36005)
@@ -26,8 +26,15 @@
JBossTS Transaction Bridge Test Suite
</description>
+ <property name="jboss.home" location="/home/jhalli/IdeaProjects/jboss/jbossas_trunk/build/target/jboss-6.0.0-SNAPSHOT"/>
+
<property name="jbossts.home" location="../.."/>
+ <property name="byteman.home" location="${jbossts.home}/build/extlib"/>
+ <property name="java.home" location="/usr/local/jdk1.6.0_22/"/>
+
+ <!-- ######################################################################### -->
+
<property name="src" location="src"/>
<property name="dd" location="dd"/>
<property name="build.dir" location="build"/>
@@ -40,6 +47,7 @@
<include name="jboss-ejb-api_3.1_spec.jar"/>
<include name="junit.jar"/>
<include name="commons-httpclient.jar"/>
+ <include name="commons-logging.jar"/>
<include name="commons-codec.jar"/>
<include name="jboss-server-manager.jar"/>
<include name="jboss-logging.jar"/>
@@ -60,6 +68,8 @@
<pathelement location="../build/txbridge.jar"/>
+ <pathelement location="${jboss.home}/client/jboss-system-client.jar"/>
+
<!--<pathelement location="/home/jhalli/IdeaProjects/jboss/jbossas_trunk/build/target/jboss-6.0.0-SNAPSHOT/client/jboss-system-client.jar"/>-->
</path>
@@ -131,7 +141,7 @@
(XTS, txbridge, test -client and -service) to be deployted in it. Additionally,
the AS needs to be running with byteman installed e.g.
- export JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006 -Xmx1024m -javaagent:/home/jhalli/IdeaProjects/jboss/byteman_trunk/install/lib/byteman.jar=port:9091,listener:true -Dorg.jboss.byteman.debug=true -Dorg.jboss.byteman.verbose=true"
+ export JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006 -Xmx1024m -javaagent:/home/jhalli/IdeaProjects/jboss/jbossts_trunk/build/extlib/byteman.jar=port:9091,listener:true,sys:/home/jhalli/IdeaProjects/jboss/jbossts_trunk/build/extlib/byteman-dtest.jar -Dorg.jboss.byteman.debug=true -Dorg.jboss.byteman.verbose=true -Dorg.jboss.byteman.contrib.dtest.rmiregistry.port=1199"
-->
@@ -193,6 +203,10 @@
<tests/>
</batchtest>
+ <jvmarg value="-DJAVA_HOME=${java.home}"/>
+ <jvmarg value="-DJBOSS_HOME=${jboss.home}"/>
+ <jvmarg value="-DBYTEMAN_HOME=${byteman.home}"/>
+
<jvmarg value="-Djava.rmi.server.codebase=file://build/classes/"/>
<!--<jvmarg value="-Xdebug"/>-->
<!--<jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/>-->
@@ -202,34 +216,33 @@
</macrodef>
- <!-- ##################################################################################### -->
+ <!-- ######################################################################### -->
- <property name="jbossas.home" location="/home/jhalli/IdeaProjects/jboss/jbossas_trunk/build/target/jboss-6.0.0-SNAPSHOT"/>
<property name="jbossas.server" value="default"/>
<target name="deploy-inbound-service" depends="dist" description="deploy EJB to JBossAS">
<copy file="${build.dir}/txbridge-inbound-tests-service.jar"
- todir="${jbossas.home}/server/${jbossas.server}/deploy"
+ todir="${jboss.home}/server/${jbossas.server}/deploy"
overwrite="true"/>
</target>
<!-- http://localhost:8080/txbridge-inbound-tests-client/testclient -->
<target name="deploy-inbound-client" depends="dist" description="deploy Servlet to JBossAS">
<copy file="${build.dir}/txbridge-inbound-tests-client.war"
- todir="${jbossas.home}/server/${jbossas.server}/deploy"
+ todir="${jboss.home}/server/${jbossas.server}/deploy"
overwrite="true"/>
</target>
<target name="deploy-outbound-service" depends="dist" description="deploy WS to JBossAS">
<copy file="${build.dir}/txbridge-outbound-tests-service.war"
- todir="${jbossas.home}/server/${jbossas.server}/deploy"
+ todir="${jboss.home}/server/${jbossas.server}/deploy"
overwrite="true"/>
</target>
<!-- http://localhost:8080/txbridge-outbound-tests-client/testclient -->
<target name="deploy-outbound-client" depends="dist" description="deploy Servlet to JBossAS">
<copy file="${build.dir}/txbridge-outbound-tests-client.war"
- todir="${jbossas.home}/server/${jbossas.server}/deploy"
+ todir="${jboss.home}/server/${jbossas.server}/deploy"
overwrite="true"/>
</target>
Modified: labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/client/TestClient.java
===================================================================
--- labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/client/TestClient.java 2010-11-17 16:15:47 UTC (rev 36004)
+++ labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/client/TestClient.java 2010-11-17 17:35:17 UTC (rev 36005)
@@ -64,7 +64,7 @@
try
{
URL wsdlLocation = new URL("http://localhost:8080/txbridge-inbound-tests-service/TestServiceImpl?wsdl");
- QName serviceName = new QName("http://service.inbound.tests.txbridge.jbossts.jboss.org/", "TestServiceImplService");
+ QName serviceName = new QName("http://client.inbound.tests.txbridge.jbossts.jboss.org/", "TestServiceImplService");
Service service = Service.create(wsdlLocation, serviceName);
testService = service.getPort(TestService.class);
Modified: labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/client/TestService.java
===================================================================
--- labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/client/TestService.java 2010-11-17 16:15:47 UTC (rev 36004)
+++ labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/client/TestService.java 2010-11-17 17:35:17 UTC (rev 36005)
@@ -22,13 +22,14 @@
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
+import javax.xml.ws.WebServiceClient;
/**
* Interface for a web service used by txbridge test cases. Client side version.
*
* @author Jonathan Halliday (jonathan.halliday at redhat.com) 2010-01
*/
- at WebService
+ at WebService(name="TestServiceImpl", targetNamespace = "http://client.inbound.tests.txbridge.jbossts.jboss.org/")
@SOAPBinding(style = SOAPBinding.Style.RPC)
public interface TestService
{
Modified: labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/junit/BasicTests.java
===================================================================
--- labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/junit/BasicTests.java 2010-11-17 16:15:47 UTC (rev 36004)
+++ labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/junit/BasicTests.java 2010-11-17 17:35:17 UTC (rev 36005)
@@ -54,7 +54,7 @@
@BeforeClass
public static void beforeClass() throws Exception {
instrumentor = new Instrumentor(new Submit(), 1199);
- instrumentor.installHelperJar("/home/jhalli/IdeaProjects/jboss/byteman_trunk/contrib/dtest/build/lib/byteman-dtest.jar");
+ //instrumentor.installHelperJar("/home/jhalli/IdeaProjects/jboss/byteman_trunk/contrib/dtest/build/lib/byteman-dtest.jar");
}
@Before
Modified: labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/junit/CrashRecoveryTests.java
===================================================================
--- labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/junit/CrashRecoveryTests.java 2010-11-17 16:15:47 UTC (rev 36004)
+++ labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/junit/CrashRecoveryTests.java 2010-11-17 17:35:17 UTC (rev 36005)
@@ -62,10 +62,13 @@
private InstrumentedClass instrumentedTestSynchronization;
private InstrumentedClass instrumentedTestXAResource;
-
private static final ServerManager manager = new ServerManager(); // ASTestConfig.java/ServerTask.java
private static final Argument bytemanArgument = new Argument();
+ private static String jboss_home;
+ private static String java_home;
+ private static String byteman_home;
+
/*
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006
@@ -82,12 +85,36 @@
public static void beforeClass() throws Exception {
instrumentor = new Instrumentor(new Submit(), 1199);
- manager.setJbossHome("/home/jhalli/IdeaProjects/jboss/jbossas_trunk/build/target/jboss-6.0.0-SNAPSHOT/");
- manager.setJavaHome("/usr/local/jdk1.6.0_20/");
+ jboss_home = System.getProperty("JBOSS_HOME");
+ if(jboss_home == null) {
+ throw new IllegalStateException("no JBOSS_HOME defined");
+ }
+ File jbossHomeDirectory = new File(jboss_home);
+ if(!jbossHomeDirectory.exists() || !jbossHomeDirectory.isDirectory()) {
+ throw new IllegalStateException("invalid JBOSS_HOME");
+ }
+ manager.setJbossHome(jboss_home);
-// byteman.jar=script:$SCRIPT_HOME/HeuristicSaveAndRecover.txt
+ java_home = System.getProperty("JAVA_HOME");
+ if(java_home == null) {
+ throw new IllegalStateException("no JAVA_HOME defined");
+ }
+ File javaHomeDir = new File(java_home);
+ if(!javaHomeDir.exists() || !javaHomeDir.isDirectory()) {
+ throw new IllegalStateException("invalid JAVA_HOME");
+ }
+ manager.setJavaHome(java_home);
+ byteman_home = System.getProperty("BYTEMAN_HOME");
+ if(byteman_home == null) {
+ throw new IllegalStateException("no BYTEMAN_HOME defined");
+ }
+ File bytemanHomeDir = new File(byteman_home);
+ if(!bytemanHomeDir.exists() || !bytemanHomeDir.isDirectory()) {
+ throw new IllegalStateException("invalid BYTEMAN_HOME");
+ }
+
Server server = new Server();
server.setName("default");
@@ -103,6 +130,10 @@
arg4.setValue("-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006");
server.addJvmArg(arg4);
+ Argument arg5 = new Argument();
+ arg5.setValue("-XX:MaxPermSize=256m"); // caution: JVM specific
+ server.addJvmArg(arg5);
+
Property property1 = new Property();
property1.setKey("org.jboss.byteman.debug");
property1.setValue("true");
@@ -123,8 +154,8 @@
@Before
public void setUp() throws Exception {
- bytemanArgument.setValue("-javaagent:/home/jhalli/IdeaProjects/jboss/byteman_trunk/install/lib/byteman.jar=port:9091,listener:true,sys:/home/jhalli/IdeaProjects/jboss/byteman_trunk/contrib/dtest/build/lib/byteman-dtest.jar");
- removeContents(new File("/home/jhalli/IdeaProjects/jboss/jbossas_trunk/build/target/jboss-6.0.0-SNAPSHOT/server/default/data/tx-object-store/"));
+ bytemanArgument.setValue("-javaagent:"+byteman_home+"/byteman.jar=port:9091,listener:true,sys:"+byteman_home+"/byteman-dtest.jar");
+ removeContents(new File(jboss_home, "server/default/data/tx-object-store/"));
// TODO: fix JMXAdapter leak.
Deleted: labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/service/TestService.java
===================================================================
--- labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/service/TestService.java 2010-11-17 16:15:47 UTC (rev 36004)
+++ labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/service/TestService.java 2010-11-17 17:35:17 UTC (rev 36005)
@@ -1,31 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc. and/or its affiliates,
- * and individual contributors as indicated by the @author tags.
- * See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public License,
- * v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * (C) 2010,
- * @author JBoss, by Red Hat.
- */
-package org.jboss.jbossts.txbridge.tests.inbound.service;
-
-/**
- * Interface for a web service used by txbridge test cases. Service side version.
- *
- * @author Jonathan Halliday (jonathan.halliday at redhat.com) 2010-01
- */
-public interface TestService
-{
- public void doNothing();
-}
Modified: labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/service/TestServiceImpl.java
===================================================================
--- labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/service/TestServiceImpl.java 2010-11-17 16:15:47 UTC (rev 36004)
+++ labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/service/TestServiceImpl.java 2010-11-17 17:35:17 UTC (rev 36005)
@@ -42,21 +42,20 @@
* @author Jonathan Halliday (jonathan.halliday at redhat.com) 2010-01
*/
@Stateless
- at Remote(TestService.class)
- at WebService()
+ at WebService(targetNamespace = "http://client.inbound.tests.txbridge.jbossts.jboss.org/")
@SOAPBinding(style = SOAPBinding.Style.RPC)
@HandlerChain(file = "jaxws-handlers-server.xml") // relative path from the class file
@TransactionAttribute(TransactionAttributeType.MANDATORY) // default is REQUIRED
-public class TestServiceImpl implements TestService
+public class TestServiceImpl
{
private static Logger log = Logger.getLogger(TestServiceImpl.class);
- @Override
@WebMethod
public void doNothing() {
log.trace("doNothing()");
}
+ @WebMethod(exclude = true)
public void enlistSynchronization(int count) {
TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager();
try {
@@ -69,6 +68,7 @@
}
}
+ @WebMethod(exclude = true)
public void enlistXAResource(int count) {
TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager();
try {
Modified: labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/utility/TestXAResourceRecoveryHelper.java
===================================================================
--- labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/utility/TestXAResourceRecoveryHelper.java 2010-11-17 16:15:47 UTC (rev 36004)
+++ labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/inbound/utility/TestXAResourceRecoveryHelper.java 2010-11-17 17:35:17 UTC (rev 36005)
@@ -185,6 +185,7 @@
String parentDir = arjPropertyManager.getObjectStoreEnvironmentBean().getObjectStoreDir();
String childDir = arjPropertyManager.getObjectStoreEnvironmentBean().getLocalOSRoot();
File logDir = new File(parentDir, childDir);
+ logDir.mkdirs();
File logFile = new File(logDir, "TestXAResource.ser");
return logFile;
}
Modified: labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/outbound/junit/BasicTests.java
===================================================================
--- labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/outbound/junit/BasicTests.java 2010-11-17 16:15:47 UTC (rev 36004)
+++ labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/outbound/junit/BasicTests.java 2010-11-17 17:35:17 UTC (rev 36005)
@@ -52,7 +52,7 @@
@BeforeClass
public static void beforeClass() throws Exception {
instrumentor = new Instrumentor(new Submit(), 1199);
- instrumentor.installHelperJar("/home/jhalli/IdeaProjects/jboss/byteman_trunk/contrib/dtest/build/lib/byteman-dtest.jar");
+ //instrumentor.installHelperJar("/home/jhalli/IdeaProjects/jboss/byteman_trunk/contrib/dtest/build/lib/byteman-dtest.jar");
}
@Before
Modified: labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/outbound/junit/CrashRecoveryTests.java
===================================================================
--- labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/outbound/junit/CrashRecoveryTests.java 2010-11-17 16:15:47 UTC (rev 36004)
+++ labs/jbosstm/trunk/txbridge/tests/src/org/jboss/jbossts/txbridge/tests/outbound/junit/CrashRecoveryTests.java 2010-11-17 17:35:17 UTC (rev 36005)
@@ -65,6 +65,10 @@
private static final ServerManager manager = new ServerManager(); // ASTestConfig.java/ServerTask.java
private static final Argument bytemanArgument = new Argument();
+ private static String jboss_home;
+ private static String java_home;
+ private static String byteman_home;
+
/*
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006
@@ -81,11 +85,35 @@
public static void beforeClass() throws Exception {
instrumentor = new Instrumentor(new Submit(), 1199);
- manager.setJbossHome("/home/jhalli/IdeaProjects/jboss/jbossas_trunk/build/target/jboss-6.0.0-SNAPSHOT/");
- manager.setJavaHome("/usr/local/jdk1.6.0_20/");
+ jboss_home = System.getProperty("JBOSS_HOME");
+ if(jboss_home == null) {
+ throw new IllegalStateException("no JBOSS_HOME defined");
+ }
+ File jbossHomeDirectory = new File(jboss_home);
+ if(!jbossHomeDirectory.exists() || !jbossHomeDirectory.isDirectory()) {
+ throw new IllegalStateException("invalid JBOSS_HOME");
+ }
+ manager.setJbossHome(jboss_home);
-// byteman.jar=script:$SCRIPT_HOME/HeuristicSaveAndRecover.txt
+ java_home = System.getProperty("JAVA_HOME");
+ if(java_home == null) {
+ throw new IllegalStateException("no JAVA_HOME defined");
+ }
+ File javaHomeDir = new File(java_home);
+ if(!javaHomeDir.exists() || !javaHomeDir.isDirectory()) {
+ throw new IllegalStateException("invalid JAVA_HOME");
+ }
+ manager.setJavaHome(java_home);
+ byteman_home = System.getProperty("BYTEMAN_HOME");
+ if(byteman_home == null) {
+ throw new IllegalStateException("no BYTEMAN_HOME defined");
+ }
+ File bytemanHomeDir = new File(byteman_home);
+ if(!bytemanHomeDir.exists() || !bytemanHomeDir.isDirectory()) {
+ throw new IllegalStateException("invalid BYTEMAN_HOME");
+ }
+
Server server = new Server();
server.setName("default");
@@ -102,6 +130,10 @@
arg4.setValue("-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006");
server.addJvmArg(arg4);
+ Argument arg5 = new Argument();
+ arg5.setValue("-XX:MaxPermSize=256m"); // caution: JVM specific
+ server.addJvmArg(arg5);
+
Property property1 = new Property();
property1.setKey("org.jboss.byteman.debug");
property1.setValue("true");
@@ -122,8 +154,8 @@
@Before
public void setUp() throws Exception {
- bytemanArgument.setValue("-javaagent:/home/jhalli/IdeaProjects/jboss/byteman_trunk/install/lib/byteman.jar=port:9091,listener:true,sys:/home/jhalli/IdeaProjects/jboss/byteman_trunk/contrib/dtest/build/lib/byteman-dtest.jar");
- removeContents(new File("/home/jhalli/IdeaProjects/jboss/jbossas_trunk/build/target/jboss-6.0.0-SNAPSHOT/server/default/data/tx-object-store/"));
+ bytemanArgument.setValue("-javaagent:"+byteman_home+"/byteman.jar=port:9091,listener:true,sys:"+byteman_home+"/byteman-dtest.jar");
+ removeContents(new File(jboss_home, "server/default/data/tx-object-store/"));
// TODO: fix JMXAdapter leak.
@@ -184,7 +216,7 @@
manager.startServer("default");
}
- //@Test
+ @Test
public void testCrashOneLog() throws Exception {
instrumentor.injectOnCall(TestClient.class, "terminateTransaction", "$1 = true"); // shouldCommit=true
@@ -214,7 +246,7 @@
instrumentedTestDurableParticipant.assertMethodNotCalled("commit");
}
- //@Test
+ @Test
public void testCrashTwoLogs() throws Exception {
instrumentor.injectOnCall(TestClient.class, "terminateTransaction", "$1 = true"); // shouldCommit=true
@@ -245,7 +277,7 @@
}
// this one requires <property name="commitOnePhase">false</property> on CoordinatorEnvironmentBean
- @Test
+ //@Test
public void testCrashThreeLogs() throws Exception {
instrumentor.injectOnCall(TestClient.class, "terminateTransaction", "$1 = true"); // shouldCommit=true
More information about the jboss-svn-commits
mailing list