[jboss-cvs] JBossAS SVN: r69959 - projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/stateful/unit.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Feb 19 19:48:07 EST 2008
Author: ALRubinger
Date: 2008-02-19 19:48:06 -0500 (Tue, 19 Feb 2008)
New Revision: 69959
Modified:
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/stateful/unit/RemoteUnitTestCase.java
Log:
Fix naming conventions on Stateful RemoteUnitTestCase to expose test cases. Reveals errors.
Modified: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/stateful/unit/RemoteUnitTestCase.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/stateful/unit/RemoteUnitTestCase.java 2008-02-20 00:47:46 UTC (rev 69958)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/stateful/unit/RemoteUnitTestCase.java 2008-02-20 00:48:06 UTC (rev 69959)
@@ -38,7 +38,6 @@
import org.jboss.ejb3.test.stateful.Entity;
import org.jboss.ejb3.test.stateful.EntityFacade;
import org.jboss.ejb3.test.stateful.ExtendedState;
-import org.jboss.ejb3.test.stateful.ProxyFactoryInterface;
import org.jboss.ejb3.test.stateful.RemoteBindingInterceptor;
import org.jboss.ejb3.test.stateful.ServiceRemote;
import org.jboss.ejb3.test.stateful.SmallCacheStateful;
@@ -172,7 +171,7 @@
}
}
- public void atestSmallCache() throws Exception
+ public void testSmallCache() throws Exception
{
ConcurrentInvocation[] threads = new ConcurrentInvocation[5];
for (int i = 0; i < 5; i++) threads[i] = new ConcurrentInvocation(i);
@@ -189,7 +188,7 @@
- public void atestStatefulSynchronization() throws Exception
+ public void testStatefulSynchronization() throws Exception
{
SecurityAssociation.setPrincipal(new SimplePrincipal("somebody"));
SecurityAssociation.setCredential("password".toCharArray());
@@ -199,7 +198,7 @@
}
- public void atestEJBObject() throws Exception
+ public void testEJBObject() throws Exception
{
SecurityAssociation.setPrincipal(new SimplePrincipal("somebody"));
SecurityAssociation.setCredential("password".toCharArray());
@@ -212,7 +211,7 @@
assertNotNull(stateful);
}
- public void atestStatefulTx() throws Exception
+ public void testStatefulTx() throws Exception
{
SecurityAssociation.setPrincipal(new SimplePrincipal("somebody"));
SecurityAssociation.setCredential("password".toCharArray());
@@ -237,7 +236,7 @@
}
}
- public void atestTemplateInterfaceTx() throws Exception
+ public void testTemplateInterfaceTx() throws Exception
{
SecurityAssociation.setPrincipal(new SimplePrincipal("somebody"));
SecurityAssociation.setCredential("password".toCharArray());
@@ -255,7 +254,7 @@
}
}
- public void atestLocalSFSB() throws Exception
+ public void testLocalSFSB() throws Exception
{
SecurityAssociation.setPrincipal(new SimplePrincipal("somebody"));
SecurityAssociation.setCredential("password".toCharArray());
@@ -275,7 +274,7 @@
}
}
- public void atestNotSerialableSFSB() throws Exception
+ public void testNotSerialableSFSB() throws Exception
{
SecurityAssociation.setPrincipal(new SimplePrincipal("somebody"));
SecurityAssociation.setCredential("password".toCharArray());
@@ -287,7 +286,7 @@
assertEquals("state", state);
}
- public void atestSFSBInit() throws Exception
+ public void testSFSBInit() throws Exception
{
SecurityAssociation.setPrincipal(new SimplePrincipal("somebody"));
SecurityAssociation.setCredential("password".toCharArray());
@@ -301,7 +300,7 @@
assertEquals("Extended_init", s);
}
- public void atestStackTrace() throws Exception
+ public void testStackTrace() throws Exception
{
SecurityAssociation.setPrincipal(new SimplePrincipal("somebody"));
SecurityAssociation.setCredential("password".toCharArray());
@@ -321,7 +320,7 @@
}
}
- public void atestExceptionCase() throws Exception
+ public void testExceptionCase() throws Exception
{
SecurityAssociation.setPrincipal(new SimplePrincipal("somebody"));
SecurityAssociation.setCredential("password".toCharArray());
@@ -342,7 +341,7 @@
}
}
- public void atestRemoteBindingInterceptorStack() throws Exception
+ public void testRemoteBindingInterceptorStack() throws Exception
{
SecurityAssociation.setPrincipal(new SimplePrincipal("somebody"));
SecurityAssociation.setCredential("password".toCharArray());
@@ -353,7 +352,7 @@
assertTrue(RemoteBindingInterceptor.accessed);
}
- public void atestUninstantiatedPassivation() throws Exception
+ public void testUninstantiatedPassivation() throws Exception
{
SecurityAssociation.setPrincipal(new SimplePrincipal("somebody"));
SecurityAssociation.setCredential("password".toCharArray());
@@ -370,7 +369,7 @@
stateful.testStateful();
}
- public void atestExtendedPersistencePassivation() throws Exception
+ public void testExtendedPersistencePassivation() throws Exception
{
EntityFacade stateful = (EntityFacade)getInitialContext().lookup("EntityFacadeBean/remote");
Entity entity = null;
@@ -424,7 +423,7 @@
System.out.println("maxConnectionsInUseCount \n" + maxConnectionsInUseCount);
}
- public void atestTimeoutRemoval() throws Exception
+ public void testTimeoutRemoval() throws Exception
{
StatefulTimeout sfsb = (StatefulTimeout)getInitialContext().lookup("StatefulTimeoutBean/remote");
sfsb.test();
@@ -451,7 +450,7 @@
}
}
- public void atestClusteredTimeoutRemoval() throws Exception
+ public void testClusteredTimeoutRemoval() throws Exception
{
StatefulTimeout sfsb = (StatefulTimeout)getInitialContext().lookup("StatefulClusteredTimeoutBean/remote");
sfsb.test();
@@ -478,7 +477,7 @@
}
}
- public void atestConcurrentClusteredTimeoutRemoval() throws Exception
+ public void testConcurrentClusteredTimeoutRemoval() throws Exception
{
int numThreads = 100;
ConcurrentStatefulTimeoutClient[] clients = new ConcurrentStatefulTimeoutClient[numThreads];
@@ -516,7 +515,7 @@
assertEquals(0, size);
}
- public void atestPassivation() throws Exception
+ public void testPassivation() throws Exception
{
SecurityAssociation.setPrincipal(new SimplePrincipal("somebody"));
SecurityAssociation.setCredential("password".toCharArray());
@@ -557,7 +556,7 @@
service.testInjection();
}
- public void atestClusteredPassivation() throws Exception
+ public void testClusteredPassivation() throws Exception
{
SecurityAssociation.setPrincipal(new SimplePrincipal("somebody"));
SecurityAssociation.setCredential("password".toCharArray());
@@ -599,7 +598,7 @@
}
- public void atestRemove() throws Exception
+ public void testRemove() throws Exception
{
SecurityAssociation.setPrincipal(new SimplePrincipal("somebody"));
SecurityAssociation.setCredential("password".toCharArray());
@@ -621,14 +620,14 @@
}
}
- public void atestRemoveWithRollback() throws Exception
+ public void testRemoveWithRollback() throws Exception
{
Tester test = (Tester) getInitialContext().lookup("TesterBean/remote");
test.testRollback1();
test.testRollback2();
}
- public void atestConcurrentAccess() throws Exception
+ public void testConcurrentAccess() throws Exception
{
ConcurrentStateful stateful = (ConcurrentStateful) new InitialContext().lookup("ConcurrentStateful");
stateful.getState();
@@ -677,7 +676,7 @@
assertTrue(wasConcurrentException);
}
- public void atestOverrideConcurrentAccess() throws Exception
+ public void testOverrideConcurrentAccess() throws Exception
{
ConcurrentStateful stateful = (ConcurrentStateful) new InitialContext().lookup("OverrideConcurrentStateful");
stateful.getState();
@@ -705,7 +704,7 @@
assertTrue(wasConcurrentException);
}
- public void atestJmxName() throws Exception
+ public void testJmxName() throws Exception
{
ObjectName deployment = new ObjectName("test.ejb3:name=Bill,service=EJB3");
@@ -714,7 +713,7 @@
kernel.invoke(deployment, "start", new Object[0], new String[0]);
}
- public void atestDestroyException() throws Exception
+ public void testDestroyException() throws Exception
{
EntityFacade stateful = (EntityFacade)getInitialContext().lookup("EntityFacadeBean/remote");
assertNotNull(stateful);
@@ -756,7 +755,7 @@
*/
}
- public void atestDestroyExceptionWithTx() throws Exception
+ public void testDestroyExceptionWithTx() throws Exception
{
EntityFacade stateful = (EntityFacade)getInitialContext().lookup("EntityFacadeBean/remote");
assertNotNull(stateful);
More information about the jboss-cvs-commits
mailing list