User: user57
Date: 01/05/01 20:07:18
Modified: src/bin testbeantest.sh
Log:
o Updated testbeantest.sh to use the correct classpath.
o Updated jboss-client.jar so that testbeantest.sh would run correctly
and not complain about serial version problems.
o Updated testbean/test/Main to HomeHandles and getting the EJBHome
from them.
o Added installInvalidNamingProperties() and restoreValidNamingProperties()
to validate that the bean and home handles "remeber" which container they
came from.
NOTE: This will cause errors if the tested container does not have the required
properties setup to specify the handle-jndi properties. Not really sure
how to work around this.
Revision Changes Path
1.3 +26 -1 jbosstest/src/bin/testbeantest.sh
Index: testbeantest.sh
===================================================================
RCS file: /cvsroot/jboss/jbosstest/src/bin/testbeantest.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- testbeantest.sh 2000/11/08 14:44:09 1.2
+++ testbeantest.sh 2001/05/02 03:07:18 1.3
@@ -1,3 +1,28 @@
#!/bin/sh
-java -Djava.security.policy=jar:file:../lib/testbeantest.jar!/client.policy
-Djava.security.manager -classpath ../lib/testbeantest.jar junit.swingui.TestRunner
org.jboss.test.testbean.test.Main $*
+if [ "x$LIB_DIR" = "x" ]; then
+ LIB_DIR="../lib"
+fi
+
+CLASSPATH="$LIB_DIR/testbeantest.jar:$CLASSPATH"
+CLASSPATH="$LIB_DIR/junit.jar:$CLASSPATH"
+CLASSPATH="$LIB_DIR/jndi.jar:$CLASSPATH"
+CLASSPATH="$LIB_DIR/jnp-client.jar:$CLASSPATH"
+CLASSPATH="$LIB_DIR/jboss-j2ee.jar:$CLASSPATH"
+CLASSPATH="$LIB_DIR/jboss-client.jar:$CLASSPATH"
+CLASSPATH="$LIB_DIR/jbossmq-client.jar:$CLASSPATH"
+CLASSPATH="$LIB_DIR/jaas.jar:$CLASSPATH"
+CLASSPATH="$LIB_DIR/jms.jar:$CLASSPATH"
+
+POLICY_FILE="jar:file:${LIB_DIR}/testbeantest.jar!/client.policy"
+
+if [ "x$RUNNER_CLASS" = "x" ]; then
+ RUNNER_CLASS=junit.swingui.TestRunner
+fi
+
+java \
+ -Djava.security.policy="$POLICY_FILE" \
+ -Djava.security.manager \
+ -classpath "$CLASSPATH" \
+ $RUNNER_CLASS \
+ org.jboss.test.testbean.test.Main $*
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development