You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by an...@apache.org on 2014/07/15 23:55:19 UTC
svn commit: r1610862 [15/44] - in /tomee/tomee/trunk/itests: ./ failover-ejb/
failover-ejb/src/main/java/org/apache/openejb/itest/failover/ejb/ failover/
failover/src/main/java/org/apache/openejb/itest/failover/
failover/src/main/java/org/apache/openej...
Modified: tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/PersistenceContextStatefulBean.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/PersistenceContextStatefulBean.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/PersistenceContextStatefulBean.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/PersistenceContextStatefulBean.java Tue Jul 15 21:55:09 2014
@@ -39,32 +39,32 @@ public class PersistenceContextStatefulB
private SessionContext ejbContext;
@Resource
- public void setSessionContext(SessionContext ctx) {
+ public void setSessionContext(final SessionContext ctx) {
ejbContext = ctx;
}
@Remove
- public void remove(){
+ public void remove() {
}
-
- public String remove(String arg) {
+
+ public String remove(final String arg) {
return arg;
}
-
+
public void testPersistenceContext() throws TestFailureException {
- try{
- try{
- InitialContext ctx = new InitialContext();
+ try {
+ try {
+ final InitialContext ctx = new InitialContext();
Assert.assertNotNull("The InitialContext is null", ctx);
- EntityManager em = (EntityManager)ctx.lookup("java:comp/env/persistence/TestContext");
+ final EntityManager em = (EntityManager) ctx.lookup("java:comp/env/persistence/TestContext");
Assert.assertNotNull("The EntityManager is null", em);
// call a do nothing method to assure entity manager actually exists
em.getFlushMode();
- } catch (Exception e){
- Assert.fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ } catch (final Exception e) {
+ Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
- } catch (AssertionFailedError afe){
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -72,9 +72,9 @@ public class PersistenceContextStatefulB
public void testExtendedPersistenceContext() throws TestFailureException {
try {
try {
- InitialContext ctx = new InitialContext();
+ final InitialContext ctx = new InitialContext();
Assert.assertNotNull("The InitialContext is null", ctx);
- EntityManager em = (EntityManager) ctx.lookup("java:comp/env/persistence/ExtendedTestContext");
+ final EntityManager em = (EntityManager) ctx.lookup("java:comp/env/persistence/ExtendedTestContext");
Assert.assertNotNull("The EntityManager is null", em);
// call a do nothing method to assure entity manager actually exists
@@ -82,26 +82,26 @@ public class PersistenceContextStatefulB
if (extendedEntityManager != null) {
Assert.assertSame("Extended entity manager should be the same instance that was found last time",
- extendedEntityManager,
- em);
+ extendedEntityManager,
+ em);
Assert.assertSame("Extended entity manager delegate should be the same instance that was found last time",
- extendedEntityManager.getDelegate(),
- em.getDelegate());
+ extendedEntityManager.getDelegate(),
+ em.getDelegate());
}
extendedEntityManager = em;
- UserTransaction userTransaction = ejbContext.getUserTransaction();
+ final UserTransaction userTransaction = ejbContext.getUserTransaction();
userTransaction.begin();
try {
em.getFlushMode();
} finally {
userTransaction.commit();
}
- } catch (Exception e) {
+ } catch (final Exception e) {
e.printStackTrace();
Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -109,9 +109,9 @@ public class PersistenceContextStatefulB
public void testPropagatedPersistenceContext() throws TestFailureException {
try {
try {
- InitialContext ctx = new InitialContext();
+ final InitialContext ctx = new InitialContext();
Assert.assertNotNull("The InitialContext is null", ctx);
- EntityManager em = (EntityManager) ctx.lookup("java:comp/env/persistence/ExtendedTestContext");
+ final EntityManager em = (EntityManager) ctx.lookup("java:comp/env/persistence/ExtendedTestContext");
Assert.assertNotNull("The EntityManager is null", em);
// call a do nothing method to assure entity manager actually exists
@@ -121,13 +121,13 @@ public class PersistenceContextStatefulB
inheritedDelegate = (EntityManager) em.getDelegate();
// The extended entity manager is not propigated to a non-extended entity manager unless there is a transaction
- EntityManager nonExtendedEm = (EntityManager) ctx.lookup("java:comp/env/persistence/TestContext");
+ final EntityManager nonExtendedEm = (EntityManager) ctx.lookup("java:comp/env/persistence/TestContext");
nonExtendedEm.getFlushMode();
- EntityManager nonExtendedDelegate = ((EntityManager) nonExtendedEm.getDelegate());
+ final EntityManager nonExtendedDelegate = ((EntityManager) nonExtendedEm.getDelegate());
Assert.assertTrue("non-extended entity manager should be open", nonExtendedDelegate.isOpen());
Assert.assertNotSame("Extended non-extended entity manager shound not be the same instance as extendend entity manager when accessed out side of a transactions",
- inheritedDelegate,
- nonExtendedDelegate);
+ inheritedDelegate,
+ nonExtendedDelegate);
// When the non-extended entity manager is accessed within a transaction is should see the stateful extended context.
//
@@ -135,12 +135,12 @@ public class PersistenceContextStatefulB
// container associates the persistence context with the JTA transaction and calls EntityManager.joinTransaction."
// If our the extended entity manager were not associted with the transaction, the non-extended entity manager would
// not see it.
- UserTransaction userTransaction = ejbContext.getUserTransaction();
+ final UserTransaction userTransaction = ejbContext.getUserTransaction();
userTransaction.begin();
try {
Assert.assertSame("Extended non-extended entity manager to be same instance as extendend entity manager",
- inheritedDelegate,
- nonExtendedEm.getDelegate());
+ inheritedDelegate,
+ nonExtendedEm.getDelegate());
} finally {
userTransaction.commit();
}
@@ -148,18 +148,18 @@ public class PersistenceContextStatefulB
// When a stateful bean with an extended entity manager creates another stateful bean, the new bean will
// inherit the extended entity manager (assuming it contains an extended entity manager for the same persistence
// unit).
- PersistenceContextStatefulHome home = (PersistenceContextStatefulHome) ejbContext.getEJBHome();
- PersistenceContextStatefulObject object = home.create();
+ final PersistenceContextStatefulHome home = (PersistenceContextStatefulHome) ejbContext.getEJBHome();
+ final PersistenceContextStatefulObject object = home.create();
// test the new stateful bean recieved the context
object.testPropgation();
// remove the bean
object.remove();
- } catch (Exception e) {
+ } catch (final Exception e) {
Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -168,23 +168,23 @@ public class PersistenceContextStatefulB
if (inheritedDelegate == null) return;
try {
try {
- InitialContext ctx = new InitialContext();
+ final InitialContext ctx = new InitialContext();
Assert.assertNotNull("The InitialContext is null", ctx);
- EntityManager em = (EntityManager) ctx.lookup("java:comp/env/persistence/ExtendedTestContext");
+ final EntityManager em = (EntityManager) ctx.lookup("java:comp/env/persistence/ExtendedTestContext");
Assert.assertNotNull("The EntityManager is null", em);
// call a do nothing method to assure entity manager actually exists
em.getFlushMode();
- EntityManager delegate = (EntityManager) em.getDelegate();
+ final EntityManager delegate = (EntityManager) em.getDelegate();
Assert.assertSame("Extended entity manager delegate should be the same instance that was found last time",
- inheritedDelegate,
- delegate);
- } catch (Exception e) {
+ inheritedDelegate,
+ delegate);
+ } catch (final Exception e) {
e.printStackTrace();
Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
Modified: tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/RmiIiopStatefulBean.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/RmiIiopStatefulBean.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/RmiIiopStatefulBean.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/RmiIiopStatefulBean.java Tue Jul 15 21:55:09 2014
@@ -28,19 +28,19 @@ import javax.naming.InitialContext;
import org.apache.openejb.test.object.ObjectGraph;
-public class RmiIiopStatefulBean implements javax.ejb.SessionBean{
-
+public class RmiIiopStatefulBean implements javax.ejb.SessionBean {
+
private String name;
private SessionContext ejbContext;
-
-
+
+
//=============================
// Home interface methods
//
//
// Home interface methods
//=============================
-
+
//=============================
// Remote interface methods
@@ -48,171 +48,171 @@ public class RmiIiopStatefulBean impleme
/*-------------------------------------------------*/
/* String */
/*-------------------------------------------------*/
-
- public String returnStringObject(String data) {
+
+ public String returnStringObject(final String data) {
return data;
}
-
- public String[] returnStringObjectArray(String[] data) {
+
+ public String[] returnStringObjectArray(final String[] data) {
return data;
}
/*-------------------------------------------------*/
/* Character */
/*-------------------------------------------------*/
-
- public Character returnCharacterObject(Character data) {
+
+ public Character returnCharacterObject(final Character data) {
return data;
}
-
- public char returnCharacterPrimitive(char data) {
+
+ public char returnCharacterPrimitive(final char data) {
return data;
}
-
- public Character[] returnCharacterObjectArray(Character[] data) {
+
+ public Character[] returnCharacterObjectArray(final Character[] data) {
return data;
}
-
- public char[] returnCharacterPrimitiveArray(char[] data) {
+
+ public char[] returnCharacterPrimitiveArray(final char[] data) {
return data;
}
/*-------------------------------------------------*/
/* Boolean */
/*-------------------------------------------------*/
-
- public Boolean returnBooleanObject(Boolean data) {
+
+ public Boolean returnBooleanObject(final Boolean data) {
return data;
}
-
- public boolean returnBooleanPrimitive(boolean data) {
+
+ public boolean returnBooleanPrimitive(final boolean data) {
return data;
}
-
- public Boolean[] returnBooleanObjectArray(Boolean[] data) {
+
+ public Boolean[] returnBooleanObjectArray(final Boolean[] data) {
return data;
}
-
- public boolean[] returnBooleanPrimitiveArray(boolean[] data) {
+
+ public boolean[] returnBooleanPrimitiveArray(final boolean[] data) {
return data;
}
/*-------------------------------------------------*/
/* Byte */
/*-------------------------------------------------*/
-
- public Byte returnByteObject(Byte data) {
+
+ public Byte returnByteObject(final Byte data) {
return data;
}
-
- public byte returnBytePrimitive(byte data) {
+
+ public byte returnBytePrimitive(final byte data) {
return data;
}
-
- public Byte[] returnByteObjectArray(Byte[] data) {
+
+ public Byte[] returnByteObjectArray(final Byte[] data) {
return data;
}
-
- public byte[] returnBytePrimitiveArray(byte[] data) {
+
+ public byte[] returnBytePrimitiveArray(final byte[] data) {
return data;
}
/*-------------------------------------------------*/
/* Short */
/*-------------------------------------------------*/
-
- public Short returnShortObject(Short data) {
+
+ public Short returnShortObject(final Short data) {
return data;
}
-
- public short returnShortPrimitive(short data) {
+
+ public short returnShortPrimitive(final short data) {
return data;
}
-
- public Short[] returnShortObjectArray(Short[] data) {
+
+ public Short[] returnShortObjectArray(final Short[] data) {
return data;
}
-
- public short[] returnShortPrimitiveArray(short[] data) {
+
+ public short[] returnShortPrimitiveArray(final short[] data) {
return data;
}
/*-------------------------------------------------*/
/* Integer */
/*-------------------------------------------------*/
-
- public Integer returnIntegerObject(Integer data) {
+
+ public Integer returnIntegerObject(final Integer data) {
return data;
}
-
- public int returnIntegerPrimitive(int data) {
+
+ public int returnIntegerPrimitive(final int data) {
return data;
}
-
- public Integer[] returnIntegerObjectArray(Integer[] data) {
+
+ public Integer[] returnIntegerObjectArray(final Integer[] data) {
return data;
}
-
- public int[] returnIntegerPrimitiveArray(int[] data) {
+
+ public int[] returnIntegerPrimitiveArray(final int[] data) {
return data;
}
/*-------------------------------------------------*/
/* Long */
/*-------------------------------------------------*/
-
- public Long returnLongObject(Long data) {
+
+ public Long returnLongObject(final Long data) {
return data;
}
-
- public long returnLongPrimitive(long data) {
+
+ public long returnLongPrimitive(final long data) {
return data;
}
-
- public Long[] returnLongObjectArray(Long[] data) {
+
+ public Long[] returnLongObjectArray(final Long[] data) {
return data;
}
-
- public long[] returnLongPrimitiveArray(long[] data) {
+
+ public long[] returnLongPrimitiveArray(final long[] data) {
return data;
}
/*-------------------------------------------------*/
/* Float */
/*-------------------------------------------------*/
-
- public Float returnFloatObject(Float data) {
+
+ public Float returnFloatObject(final Float data) {
return data;
}
-
- public float returnFloatPrimitive(float data) {
+
+ public float returnFloatPrimitive(final float data) {
return data;
}
-
- public Float[] returnFloatObjectArray(Float[] data) {
+
+ public Float[] returnFloatObjectArray(final Float[] data) {
return data;
}
-
- public float[] returnFloatPrimitiveArray(float[] data) {
+
+ public float[] returnFloatPrimitiveArray(final float[] data) {
return data;
}
/*-------------------------------------------------*/
/* Double */
/*-------------------------------------------------*/
-
- public Double returnDoubleObject(Double data) {
+
+ public Double returnDoubleObject(final Double data) {
return data;
}
-
- public double returnDoublePrimitive(double data) {
+
+ public double returnDoublePrimitive(final double data) {
return data;
}
-
- public Double[] returnDoubleObjectArray(Double[] data) {
+
+ public Double[] returnDoubleObjectArray(final Double[] data) {
return data;
}
-
- public double[] returnDoublePrimitiveArray(double[] data) {
+
+ public double[] returnDoublePrimitiveArray(final double[] data) {
return data;
}
@@ -220,172 +220,172 @@ public class RmiIiopStatefulBean impleme
/*-------------------------------------------------*/
/* EJBHome */
/*-------------------------------------------------*/
-
- public EJBHome returnEJBHome(EJBHome data) {
+
+ public EJBHome returnEJBHome(final EJBHome data) {
return data;
}
-
- public EJBHome returnEJBHome() throws javax.ejb.EJBException{
+
+ public EJBHome returnEJBHome() throws javax.ejb.EJBException {
EJBHome data = null;
- try{
- InitialContext ctx = new InitialContext();
+ try {
+ final InitialContext ctx = new InitialContext();
- data = (EJBHome)ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
+ data = (EJBHome) ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
- } catch (Exception e){
+ } catch (final Exception e) {
e.printStackTrace();
throw new javax.ejb.EJBException(e);
}
return data;
}
- public ObjectGraph returnNestedEJBHome() throws javax.ejb.EJBException{
- ObjectGraph data = null;
+ public ObjectGraph returnNestedEJBHome() throws javax.ejb.EJBException {
+ ObjectGraph data = null;
- try{
- InitialContext ctx = new InitialContext();
+ try {
+ final InitialContext ctx = new InitialContext();
- Object object = ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
- data = new ObjectGraph(object);
+ final Object object = ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
+ data = new ObjectGraph(object);
- } catch (Exception e){
+ } catch (final Exception e) {
throw new javax.ejb.EJBException(e);
}
return data;
}
- public EJBHome[] returnEJBHomeArray(EJBHome[] data) {
+ public EJBHome[] returnEJBHomeArray(final EJBHome[] data) {
return data;
}
/*-------------------------------------------------*/
/* EJBObject */
/*-------------------------------------------------*/
-
- public EJBObject returnEJBObject(EJBObject data) {
+
+ public EJBObject returnEJBObject(final EJBObject data) {
return data;
}
-
- public EJBObject returnEJBObject() throws javax.ejb.EJBException{
+
+ public EJBObject returnEJBObject() throws javax.ejb.EJBException {
EncStatefulObject data = null;
- try{
- InitialContext ctx = new InitialContext();
+ try {
+ final InitialContext ctx = new InitialContext();
- EncStatefulHome home = (EncStatefulHome)ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
- data = home.create("Test01 StatefulBean");
+ final EncStatefulHome home = (EncStatefulHome) ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
+ data = home.create("Test01 StatefulBean");
- } catch (Exception e){
+ } catch (final Exception e) {
throw new javax.ejb.EJBException(e);
}
return data;
}
-
- public ObjectGraph returnNestedEJBObject() throws javax.ejb.EJBException{
+
+ public ObjectGraph returnNestedEJBObject() throws javax.ejb.EJBException {
ObjectGraph data = null;
- try{
- InitialContext ctx = new InitialContext();
+ try {
+ final InitialContext ctx = new InitialContext();
- EncStatefulHome home = (EncStatefulHome)ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
- EncStatefulObject object = home.create("Test02 StatefulBean");
- data = new ObjectGraph(object);
+ final EncStatefulHome home = (EncStatefulHome) ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
+ final EncStatefulObject object = home.create("Test02 StatefulBean");
+ data = new ObjectGraph(object);
- } catch (Exception e){
+ } catch (final Exception e) {
throw new javax.ejb.EJBException(e);
}
return data;
}
-
- public EJBObject[] returnEJBObjectArray(EJBObject[] data) {
+
+ public EJBObject[] returnEJBObjectArray(final EJBObject[] data) {
return data;
}
/*-------------------------------------------------*/
/* EJBMetaData */
/*-------------------------------------------------*/
-
- public EJBMetaData returnEJBMetaData(EJBMetaData data) {
+
+ public EJBMetaData returnEJBMetaData(final EJBMetaData data) {
return data;
}
-
- public EJBMetaData returnEJBMetaData() throws javax.ejb.EJBException{
+
+ public EJBMetaData returnEJBMetaData() throws javax.ejb.EJBException {
EJBMetaData data = null;
- try{
- InitialContext ctx = new InitialContext();
+ try {
+ final InitialContext ctx = new InitialContext();
- EncStatefulHome home = (EncStatefulHome)ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
- data = home.getEJBMetaData();
+ final EncStatefulHome home = (EncStatefulHome) ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
+ data = home.getEJBMetaData();
- } catch (Exception e){
+ } catch (final Exception e) {
throw new javax.ejb.EJBException(e);
}
return data;
}
-
- public ObjectGraph returnNestedEJBMetaData() throws javax.ejb.EJBException{
+
+ public ObjectGraph returnNestedEJBMetaData() throws javax.ejb.EJBException {
ObjectGraph data = null;
- try{
- InitialContext ctx = new InitialContext();
+ try {
+ final InitialContext ctx = new InitialContext();
- EncStatefulHome home = (EncStatefulHome)ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
- EJBMetaData object = home.getEJBMetaData();
- data = new ObjectGraph(object);
+ final EncStatefulHome home = (EncStatefulHome) ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
+ final EJBMetaData object = home.getEJBMetaData();
+ data = new ObjectGraph(object);
- } catch (Exception e){
+ } catch (final Exception e) {
throw new javax.ejb.EJBException(e);
}
return data;
}
-
- public EJBMetaData[] returnEJBMetaDataArray(EJBMetaData[] data) {
+
+ public EJBMetaData[] returnEJBMetaDataArray(final EJBMetaData[] data) {
return data;
}
/*-------------------------------------------------*/
/* Handle */
/*-------------------------------------------------*/
-
- public Handle returnHandle(Handle data) {
+
+ public Handle returnHandle(final Handle data) {
return data;
}
-
- public Handle returnHandle() throws javax.ejb.EJBException{
+
+ public Handle returnHandle() throws javax.ejb.EJBException {
Handle data = null;
- try{
- InitialContext ctx = new InitialContext();
+ try {
+ final InitialContext ctx = new InitialContext();
- EncStatefulHome home = (EncStatefulHome)ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
- EncStatefulObject object = home.create("Test03 StatefulBean");
- data = object.getHandle();
+ final EncStatefulHome home = (EncStatefulHome) ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
+ final EncStatefulObject object = home.create("Test03 StatefulBean");
+ data = object.getHandle();
- } catch (Exception e){
+ } catch (final Exception e) {
throw new javax.ejb.EJBException(e);
}
return data;
}
-
- public ObjectGraph returnNestedHandle() throws javax.ejb.EJBException{
+
+ public ObjectGraph returnNestedHandle() throws javax.ejb.EJBException {
ObjectGraph data = null;
- try{
- InitialContext ctx = new InitialContext();
+ try {
+ final InitialContext ctx = new InitialContext();
- EncStatefulHome home = (EncStatefulHome)ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
- EncStatefulObject object = home.create("Test04 StatefulBean");
- data = new ObjectGraph(object.getHandle());
+ final EncStatefulHome home = (EncStatefulHome) ctx.lookup("java:comp/env/stateful/rmi-iiop/home");
+ final EncStatefulObject object = home.create("Test04 StatefulBean");
+ data = new ObjectGraph(object.getHandle());
- } catch (Exception e){
+ } catch (final Exception e) {
throw new javax.ejb.EJBException(e);
}
return data;
}
-
- public Handle[] returnHandleArray(Handle[] data) {
+
+ public Handle[] returnHandleArray(final Handle[] data) {
return data;
}
@@ -394,30 +394,30 @@ public class RmiIiopStatefulBean impleme
/* Class */
/*-------------------------------------------------*/
- public Class returnClass(Class data) {
+ public Class returnClass(final Class data) {
return data;
}
- public Class[] returnClassArray(Class[] data) {
+ public Class[] returnClassArray(final Class[] data) {
return data;
}
/*-------------------------------------------------*/
/* ObjectGraph */
/*-------------------------------------------------*/
-
- public ObjectGraph returnObjectGraph(ObjectGraph data) {
+
+ public ObjectGraph returnObjectGraph(final ObjectGraph data) {
return data;
}
-
- public ObjectGraph[] returnObjectGraphArray(ObjectGraph[] data) {
+
+ public ObjectGraph[] returnObjectGraphArray(final ObjectGraph[] data) {
return data;
}
-
- public String remove(String arg) {
+
+ public String remove(final String arg) {
return arg;
}
-
+
//
// Remote interface methods
//=============================
@@ -426,28 +426,30 @@ public class RmiIiopStatefulBean impleme
//================================
// SessionBean interface methods
//
+
/**
* Set the associated session context. The container calls this method
* after the instance creation.
*/
- public void setSessionContext(SessionContext ctx) throws EJBException,RemoteException {
+ public void setSessionContext(final SessionContext ctx) throws EJBException, RemoteException {
ejbContext = ctx;
}
+
/**
- *
* @param name
- * @exception javax.ejb.CreateException
+ * @throws javax.ejb.CreateException
*/
- public void ejbCreate(String name) throws javax.ejb.CreateException{
+ public void ejbCreate(final String name) throws javax.ejb.CreateException {
this.name = name;
}
+
/**
* A container invokes this method before it ends the life of the session
* object. This happens as a result of a client's invoking a remove
* operation, or when a container decides to terminate the session object
* after a timeout.
*/
- public void ejbRemove() throws EJBException,RemoteException {
+ public void ejbRemove() throws EJBException, RemoteException {
}
/**
@@ -455,15 +457,16 @@ public class RmiIiopStatefulBean impleme
* from its "passive" state. The instance should acquire any resource
* that it has released earlier in the ejbPassivate() method.
*/
- public void ejbActivate() throws EJBException,RemoteException {
+ public void ejbActivate() throws EJBException, RemoteException {
// Should never called.
}
+
/**
* The passivate method is called before the instance enters
* the "passive" state. The instance should release any resources that
* it can re-acquire later in the ejbActivate() method.
*/
- public void ejbPassivate() throws EJBException,RemoteException {
+ public void ejbPassivate() throws EJBException, RemoteException {
// Should never called.
}
Modified: tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/RmiIiopStatefulHome.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/RmiIiopStatefulHome.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/RmiIiopStatefulHome.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/RmiIiopStatefulHome.java Tue Jul 15 21:55:09 2014
@@ -20,5 +20,5 @@ package org.apache.openejb.test.stateful
public interface RmiIiopStatefulHome extends javax.ejb.EJBHome {
public RmiIiopStatefulObject create(String name)
- throws javax.ejb.CreateException, java.rmi.RemoteException;
+ throws javax.ejb.CreateException, java.rmi.RemoteException;
}
Modified: tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/RmiIiopStatefulObject.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/RmiIiopStatefulObject.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/RmiIiopStatefulObject.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/RmiIiopStatefulObject.java Tue Jul 15 21:55:09 2014
@@ -25,111 +25,111 @@ import javax.ejb.Handle;
import org.apache.openejb.test.object.ObjectGraph;
-public interface RmiIiopStatefulObject extends javax.ejb.EJBObject{
-
- public String returnStringObject(String data) throws RemoteException;
+public interface RmiIiopStatefulObject extends javax.ejb.EJBObject {
- public String[] returnStringObjectArray(String[] data) throws RemoteException;
+ public String returnStringObject(String data) throws RemoteException;
- public Character returnCharacterObject(Character data) throws RemoteException;
+ public String[] returnStringObjectArray(String[] data) throws RemoteException;
- public char returnCharacterPrimitive(char data) throws RemoteException;
+ public Character returnCharacterObject(Character data) throws RemoteException;
- public Character[] returnCharacterObjectArray(Character[] data) throws RemoteException;
+ public char returnCharacterPrimitive(char data) throws RemoteException;
- public char[] returnCharacterPrimitiveArray(char[] data) throws RemoteException;
+ public Character[] returnCharacterObjectArray(Character[] data) throws RemoteException;
- public Boolean returnBooleanObject(Boolean data) throws RemoteException;
+ public char[] returnCharacterPrimitiveArray(char[] data) throws RemoteException;
- public boolean returnBooleanPrimitive(boolean data) throws RemoteException;
+ public Boolean returnBooleanObject(Boolean data) throws RemoteException;
- public Boolean[] returnBooleanObjectArray(Boolean[] data) throws RemoteException;
+ public boolean returnBooleanPrimitive(boolean data) throws RemoteException;
- public boolean[] returnBooleanPrimitiveArray(boolean[] data) throws RemoteException;
+ public Boolean[] returnBooleanObjectArray(Boolean[] data) throws RemoteException;
- public Byte returnByteObject(Byte data) throws RemoteException;
+ public boolean[] returnBooleanPrimitiveArray(boolean[] data) throws RemoteException;
- public byte returnBytePrimitive(byte data) throws RemoteException;
+ public Byte returnByteObject(Byte data) throws RemoteException;
- public Byte[] returnByteObjectArray(Byte[] data) throws RemoteException;
+ public byte returnBytePrimitive(byte data) throws RemoteException;
- public byte[] returnBytePrimitiveArray(byte[] data) throws RemoteException;
+ public Byte[] returnByteObjectArray(Byte[] data) throws RemoteException;
- public Short returnShortObject(Short data) throws RemoteException;
+ public byte[] returnBytePrimitiveArray(byte[] data) throws RemoteException;
- public short returnShortPrimitive(short data) throws RemoteException;
+ public Short returnShortObject(Short data) throws RemoteException;
- public Short[] returnShortObjectArray(Short[] data) throws RemoteException;
+ public short returnShortPrimitive(short data) throws RemoteException;
- public short[] returnShortPrimitiveArray(short[] data) throws RemoteException;
+ public Short[] returnShortObjectArray(Short[] data) throws RemoteException;
- public Integer returnIntegerObject(Integer data) throws RemoteException;
+ public short[] returnShortPrimitiveArray(short[] data) throws RemoteException;
- public int returnIntegerPrimitive(int data) throws RemoteException;
+ public Integer returnIntegerObject(Integer data) throws RemoteException;
- public Integer[] returnIntegerObjectArray(Integer[] data) throws RemoteException;
+ public int returnIntegerPrimitive(int data) throws RemoteException;
- public int[] returnIntegerPrimitiveArray(int[] data) throws RemoteException;
+ public Integer[] returnIntegerObjectArray(Integer[] data) throws RemoteException;
- public Long returnLongObject(Long data) throws RemoteException;
+ public int[] returnIntegerPrimitiveArray(int[] data) throws RemoteException;
- public long returnLongPrimitive(long data) throws RemoteException;
+ public Long returnLongObject(Long data) throws RemoteException;
- public Long[] returnLongObjectArray(Long[] data) throws RemoteException;
+ public long returnLongPrimitive(long data) throws RemoteException;
- public long[] returnLongPrimitiveArray(long[] data) throws RemoteException;
+ public Long[] returnLongObjectArray(Long[] data) throws RemoteException;
- public Float returnFloatObject(Float data) throws RemoteException;
+ public long[] returnLongPrimitiveArray(long[] data) throws RemoteException;
- public float returnFloatPrimitive(float data) throws RemoteException;
+ public Float returnFloatObject(Float data) throws RemoteException;
- public Float[] returnFloatObjectArray(Float[] data) throws RemoteException;
+ public float returnFloatPrimitive(float data) throws RemoteException;
- public float[] returnFloatPrimitiveArray(float[] data) throws RemoteException;
+ public Float[] returnFloatObjectArray(Float[] data) throws RemoteException;
- public Double returnDoubleObject(Double data) throws RemoteException;
+ public float[] returnFloatPrimitiveArray(float[] data) throws RemoteException;
- public double returnDoublePrimitive(double data) throws RemoteException;
+ public Double returnDoubleObject(Double data) throws RemoteException;
- public Double[] returnDoubleObjectArray(Double[] data) throws RemoteException;
+ public double returnDoublePrimitive(double data) throws RemoteException;
- public double[] returnDoublePrimitiveArray(double[] data) throws RemoteException;
+ public Double[] returnDoubleObjectArray(Double[] data) throws RemoteException;
+
+ public double[] returnDoublePrimitiveArray(double[] data) throws RemoteException;
public EJBHome returnEJBHome(EJBHome data) throws RemoteException;
- public EJBHome returnEJBHome() throws RemoteException;
+ public EJBHome returnEJBHome() throws RemoteException;
- public ObjectGraph returnNestedEJBHome() throws RemoteException;
+ public ObjectGraph returnNestedEJBHome() throws RemoteException;
- public EJBHome[] returnEJBHomeArray(EJBHome[] data) throws RemoteException;
+ public EJBHome[] returnEJBHomeArray(EJBHome[] data) throws RemoteException;
- public EJBObject returnEJBObject(EJBObject data) throws RemoteException;
+ public EJBObject returnEJBObject(EJBObject data) throws RemoteException;
- public EJBObject returnEJBObject() throws RemoteException;
+ public EJBObject returnEJBObject() throws RemoteException;
- public ObjectGraph returnNestedEJBObject() throws RemoteException;
+ public ObjectGraph returnNestedEJBObject() throws RemoteException;
- public EJBObject[] returnEJBObjectArray(EJBObject[] data) throws RemoteException;
+ public EJBObject[] returnEJBObjectArray(EJBObject[] data) throws RemoteException;
- public EJBMetaData returnEJBMetaData(EJBMetaData data) throws RemoteException;
+ public EJBMetaData returnEJBMetaData(EJBMetaData data) throws RemoteException;
- public EJBMetaData returnEJBMetaData() throws RemoteException;
+ public EJBMetaData returnEJBMetaData() throws RemoteException;
- public ObjectGraph returnNestedEJBMetaData() throws RemoteException;
+ public ObjectGraph returnNestedEJBMetaData() throws RemoteException;
- public EJBMetaData[] returnEJBMetaDataArray(EJBMetaData[] data) throws RemoteException;
+ public EJBMetaData[] returnEJBMetaDataArray(EJBMetaData[] data) throws RemoteException;
- public Handle returnHandle(Handle data) throws RemoteException;
+ public Handle returnHandle(Handle data) throws RemoteException;
- public Handle returnHandle() throws RemoteException;
+ public Handle returnHandle() throws RemoteException;
- public ObjectGraph returnNestedHandle() throws RemoteException;
+ public ObjectGraph returnNestedHandle() throws RemoteException;
- public Handle[] returnHandleArray(Handle[] data) throws RemoteException;
+ public Handle[] returnHandleArray(Handle[] data) throws RemoteException;
- public ObjectGraph returnObjectGraph(ObjectGraph data) throws RemoteException;
+ public ObjectGraph returnObjectGraph(ObjectGraph data) throws RemoteException;
- public ObjectGraph[] returnObjectGraphArray(ObjectGraph[] data) throws RemoteException;
+ public ObjectGraph[] returnObjectGraphArray(ObjectGraph[] data) throws RemoteException;
public Class returnClass(Class data) throws RemoteException;
Modified: tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/SetterInjectionStatefulBean.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/SetterInjectionStatefulBean.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/SetterInjectionStatefulBean.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/SetterInjectionStatefulBean.java Tue Jul 15 21:55:09 2014
@@ -79,7 +79,7 @@ public class SetterInjectionStatefulBean
return statefulBusinessLocalField;
}
- public void setStatefulBusinessLocal(BasicStatefulBusinessLocal statefulBusinessLocal) {
+ public void setStatefulBusinessLocal(final BasicStatefulBusinessLocal statefulBusinessLocal) {
this.statefulBusinessLocalField = statefulBusinessLocal;
}
@@ -87,7 +87,7 @@ public class SetterInjectionStatefulBean
return statefulBusinessLocalBeanField;
}
- public void setStatefulBusinessLocalBean(BasicStatefulPojoBean statefulBusinessLocalBean) {
+ public void setStatefulBusinessLocalBean(final BasicStatefulPojoBean statefulBusinessLocalBean) {
this.statefulBusinessLocalBeanField = statefulBusinessLocalBean;
}
@@ -95,7 +95,7 @@ public class SetterInjectionStatefulBean
return statefulBusinessRemoteField;
}
- public void setStatefulBusinessRemote(BasicStatefulBusinessRemote statefulBusinessRemote) {
+ public void setStatefulBusinessRemote(final BasicStatefulBusinessRemote statefulBusinessRemote) {
this.statefulBusinessRemoteField = statefulBusinessRemote;
}
@@ -103,7 +103,7 @@ public class SetterInjectionStatefulBean
return statelessBusinessLocalField;
}
- public void setStatelessBusinessLocal(BasicStatelessBusinessLocal statelessBusinessLocal) {
+ public void setStatelessBusinessLocal(final BasicStatelessBusinessLocal statelessBusinessLocal) {
this.statelessBusinessLocalField = statelessBusinessLocal;
}
@@ -111,7 +111,7 @@ public class SetterInjectionStatefulBean
return statelessBusinessLocalBeanField;
}
- public void setStatelessBusinessLocalBean(BasicStatelessPojoBean statelessBusinessLocalBean) {
+ public void setStatelessBusinessLocalBean(final BasicStatelessPojoBean statelessBusinessLocalBean) {
this.statelessBusinessLocalBeanField = statelessBusinessLocalBean;
}
@@ -119,17 +119,16 @@ public class SetterInjectionStatefulBean
return statelessBusinessRemoteField;
}
- public void setStatelessBusinessRemote(BasicStatelessBusinessRemote statelessBusinessRemote) {
+ public void setStatelessBusinessRemote(final BasicStatelessBusinessRemote statelessBusinessRemote) {
this.statelessBusinessRemoteField = statelessBusinessRemote;
}
-
public BasicBmpHome getBmpHome() {
return bmpHomeField;
}
- public void setBmpHome(BasicBmpHome bmpHome) {
+ public void setBmpHome(final BasicBmpHome bmpHome) {
this.bmpHomeField = bmpHome;
}
@@ -137,7 +136,7 @@ public class SetterInjectionStatefulBean
return boooleanField;
}
- public void setBooolean(Boolean booolean) {
+ public void setBooolean(final Boolean booolean) {
this.boooleanField = booolean;
}
@@ -145,7 +144,7 @@ public class SetterInjectionStatefulBean
return byyteField;
}
- public void setByyte(Byte byyte) {
+ public void setByyte(final Byte byyte) {
this.byyteField = byyte;
}
@@ -153,7 +152,7 @@ public class SetterInjectionStatefulBean
return chaaracterField;
}
- public void setChaaracter(Character chaaracter) {
+ public void setChaaracter(final Character chaaracter) {
this.chaaracterField = chaaracter;
}
@@ -161,7 +160,7 @@ public class SetterInjectionStatefulBean
return daataSourceField;
}
- public void setDaataSource(DataSource daataSource) {
+ public void setDaataSource(final DataSource daataSource) {
this.daataSourceField = daataSource;
}
@@ -169,7 +168,7 @@ public class SetterInjectionStatefulBean
return coonnectionFactory;
}
- public void setCoonnectionFactory(ConnectionFactory coonnectionFactory) {
+ public void setCoonnectionFactory(final ConnectionFactory coonnectionFactory) {
this.coonnectionFactory = coonnectionFactory;
}
@@ -177,7 +176,7 @@ public class SetterInjectionStatefulBean
return queueCoonnectionFactory;
}
- public void setQueueCoonnectionFactory(QueueConnectionFactory queueCoonnectionFactory) {
+ public void setQueueCoonnectionFactory(final QueueConnectionFactory queueCoonnectionFactory) {
this.queueCoonnectionFactory = queueCoonnectionFactory;
}
@@ -185,7 +184,7 @@ public class SetterInjectionStatefulBean
return topicCoonnectionFactory;
}
- public void setTopicCoonnectionFactory(TopicConnectionFactory topicCoonnectionFactory) {
+ public void setTopicCoonnectionFactory(final TopicConnectionFactory topicCoonnectionFactory) {
this.topicCoonnectionFactory = topicCoonnectionFactory;
}
@@ -193,7 +192,7 @@ public class SetterInjectionStatefulBean
return dooubleField;
}
- public void setDoouble(Double doouble) {
+ public void setDoouble(final Double doouble) {
this.dooubleField = doouble;
}
@@ -201,7 +200,7 @@ public class SetterInjectionStatefulBean
return eemField;
}
- public void setEem(EntityManager eem) {
+ public void setEem(final EntityManager eem) {
this.eemField = eem;
}
@@ -209,7 +208,7 @@ public class SetterInjectionStatefulBean
return ejbContextField;
}
- public void setEjbContext(SessionContext ejbContext) {
+ public void setEjbContext(final SessionContext ejbContext) {
this.ejbContextField = ejbContext;
}
@@ -217,7 +216,7 @@ public class SetterInjectionStatefulBean
return emField;
}
- public void setEm(EntityManager em) {
+ public void setEm(final EntityManager em) {
this.emField = em;
}
@@ -225,7 +224,7 @@ public class SetterInjectionStatefulBean
return emfField;
}
- public void setEmf(EntityManagerFactory emf) {
+ public void setEmf(final EntityManagerFactory emf) {
this.emfField = emf;
}
@@ -233,7 +232,7 @@ public class SetterInjectionStatefulBean
return flooatField;
}
- public void setFlooat(Float flooat) {
+ public void setFlooat(final Float flooat) {
this.flooatField = flooat;
}
@@ -241,7 +240,7 @@ public class SetterInjectionStatefulBean
return inteegerField;
}
- public void setInteeger(Integer inteeger) {
+ public void setInteeger(final Integer inteeger) {
this.inteegerField = inteeger;
}
@@ -249,7 +248,7 @@ public class SetterInjectionStatefulBean
return loongField;
}
- public void setLoong(Long loong) {
+ public void setLoong(final Long loong) {
this.loongField = loong;
}
@@ -257,7 +256,7 @@ public class SetterInjectionStatefulBean
return name;
}
- public void setName(String name) {
+ public void setName(final String name) {
this.name = name;
}
@@ -265,7 +264,7 @@ public class SetterInjectionStatefulBean
return pemField;
}
- public void setPem(EntityManager pem) {
+ public void setPem(final EntityManager pem) {
this.pemField = pem;
}
@@ -273,7 +272,7 @@ public class SetterInjectionStatefulBean
return shoortField;
}
- public void setShoort(Short shoort) {
+ public void setShoort(final Short shoort) {
this.shoortField = shoort;
}
@@ -281,7 +280,7 @@ public class SetterInjectionStatefulBean
return statefulHomeField;
}
- public void setStatefulHome(BasicStatefulHome statefulHome) {
+ public void setStatefulHome(final BasicStatefulHome statefulHome) {
this.statefulHomeField = statefulHome;
}
@@ -289,7 +288,7 @@ public class SetterInjectionStatefulBean
return statelessHomeField;
}
- public void setStatelessHome(BasicStatelessHome statelessHome) {
+ public void setStatelessHome(final BasicStatelessHome statelessHome) {
this.statelessHomeField = statelessHome;
}
@@ -297,7 +296,7 @@ public class SetterInjectionStatefulBean
return striingField;
}
- public void setStriing(String striing) {
+ public void setStriing(final String striing) {
this.striingField = striing;
}
//=============================
@@ -311,7 +310,7 @@ public class SetterInjectionStatefulBean
* @throws javax.ejb.CreateException
* @see EncStatefulHome#create
*/
- public void ejbCreate(String name) throws CreateException {
+ public void ejbCreate(final String name) throws CreateException {
this.name = name;
}
//
@@ -325,7 +324,7 @@ public class SetterInjectionStatefulBean
public void lookupEntityBean() throws TestFailureException {
try {
Assert.assertNotNull("The EJBObject is null", bmpHomeField);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -333,7 +332,7 @@ public class SetterInjectionStatefulBean
public void lookupStatefulBean() throws TestFailureException {
try {
Assert.assertNotNull("The EJBObject is null", statefulHomeField);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -341,155 +340,155 @@ public class SetterInjectionStatefulBean
public void lookupStatelessBean() throws TestFailureException {
try {
Assert.assertNotNull("The EJBObject is null", statelessHomeField);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
- public void lookupStatelessBusinessLocal() throws TestFailureException{
- try{
- Assert.assertNotNull("The EJB BusinessLocal is null", statelessBusinessLocalField );
- } catch (AssertionFailedError afe){
+ public void lookupStatelessBusinessLocal() throws TestFailureException {
+ try {
+ Assert.assertNotNull("The EJB BusinessLocal is null", statelessBusinessLocalField);
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
- public void lookupStatelessBusinessLocalBean() throws TestFailureException{
- try{
- Assert.assertNotNull("The EJB BusinessLocalBean is null", statelessBusinessLocalBeanField );
- } catch (AssertionFailedError afe){
+ public void lookupStatelessBusinessLocalBean() throws TestFailureException {
+ try {
+ Assert.assertNotNull("The EJB BusinessLocalBean is null", statelessBusinessLocalBeanField);
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
- public void lookupStatelessBusinessRemote() throws TestFailureException{
- try{
- Assert.assertNotNull("The EJB BusinessRemote is null", statelessBusinessRemoteField );
- } catch (AssertionFailedError afe){
+ public void lookupStatelessBusinessRemote() throws TestFailureException {
+ try {
+ Assert.assertNotNull("The EJB BusinessRemote is null", statelessBusinessRemoteField);
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
- public void lookupStatefulBusinessLocal() throws TestFailureException{
- try{
- Assert.assertNotNull("The EJB BusinessLocal is null", statefulBusinessLocalField );
- } catch (AssertionFailedError afe){
+ public void lookupStatefulBusinessLocal() throws TestFailureException {
+ try {
+ Assert.assertNotNull("The EJB BusinessLocal is null", statefulBusinessLocalField);
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
- public void lookupStatefulBusinessLocalBean() throws TestFailureException{
- try{
- Assert.assertNotNull("The EJB BusinessLocalBean is null", statefulBusinessLocalBeanField );
- } catch (AssertionFailedError afe){
+ public void lookupStatefulBusinessLocalBean() throws TestFailureException {
+ try {
+ Assert.assertNotNull("The EJB BusinessLocalBean is null", statefulBusinessLocalBeanField);
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
- public void lookupStatefulBusinessRemote() throws TestFailureException{
- try{
- Assert.assertNotNull("The EJB BusinessRemote is null", statefulBusinessRemoteField );
- } catch (AssertionFailedError afe){
+ public void lookupStatefulBusinessRemote() throws TestFailureException {
+ try {
+ Assert.assertNotNull("The EJB BusinessRemote is null", statefulBusinessRemoteField);
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupStringEntry() throws TestFailureException {
try {
- String expected = new String("1");
+ final String expected = new String("1");
Assert.assertNotNull("The String looked up is null", striingField);
Assert.assertEquals(expected, striingField);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupDoubleEntry() throws TestFailureException {
try {
- Double expected = new Double(1.0D);
+ final Double expected = new Double(1.0D);
Assert.assertNotNull("The Double looked up is null", dooubleField);
Assert.assertEquals(expected, dooubleField);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupLongEntry() throws TestFailureException {
try {
- Long expected = new Long(1L);
+ final Long expected = new Long(1L);
Assert.assertNotNull("The Long looked up is null", loongField);
Assert.assertEquals(expected, loongField);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupFloatEntry() throws TestFailureException {
try {
- Float expected = new Float(1.0F);
+ final Float expected = new Float(1.0F);
Assert.assertNotNull("The Float looked up is null", flooatField);
Assert.assertEquals(expected, flooatField);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupIntegerEntry() throws TestFailureException {
try {
- Integer expected = new Integer(1);
+ final Integer expected = new Integer(1);
Assert.assertNotNull("The Integer looked up is null", inteegerField);
Assert.assertEquals(expected, inteegerField);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupShortEntry() throws TestFailureException {
try {
- Short expected = new Short((short) 1);
+ final Short expected = new Short((short) 1);
Assert.assertNotNull("The Short looked up is null", shoortField);
Assert.assertEquals(expected, shoortField);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupBooleanEntry() throws TestFailureException {
try {
- Boolean expected = new Boolean(true);
+ final Boolean expected = new Boolean(true);
Assert.assertNotNull("The Boolean looked up is null", boooleanField);
Assert.assertEquals(expected, boooleanField);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupByteEntry() throws TestFailureException {
try {
- Byte expected = new Byte((byte) 1);
+ final Byte expected = new Byte((byte) 1);
Assert.assertNotNull("The Byte looked up is null", byyteField);
Assert.assertEquals(expected, byyteField);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupCharacterEntry() throws TestFailureException {
try {
- Character expected = new Character('D');
+ final Character expected = new Character('D');
Assert.assertNotNull("The Character looked up is null", chaaracterField);
Assert.assertEquals(expected, chaaracterField);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -497,30 +496,30 @@ public class SetterInjectionStatefulBean
public void lookupResource() throws TestFailureException {
try {
Assert.assertNotNull("The DataSource is null", daataSourceField);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
- public void lookupJMSConnectionFactory() throws TestFailureException{
- try{
- try{
+ public void lookupJMSConnectionFactory() throws TestFailureException {
+ try {
+ try {
testJmsConnection(coonnectionFactory.createConnection());
testJmsConnection(queueCoonnectionFactory.createConnection());
testJmsConnection(topicCoonnectionFactory.createConnection());
- } catch (Exception e){
+ } catch (final Exception e) {
e.printStackTrace();
- Assert.fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
- } catch (AssertionFailedError afe){
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
- private void testJmsConnection(javax.jms.Connection connection) throws JMSException {
- Session session = connection.createSession(false, Session.DUPS_OK_ACKNOWLEDGE);
- Topic topic = session.createTopic("test");
- MessageProducer producer = session.createProducer(topic);
+ private void testJmsConnection(final javax.jms.Connection connection) throws JMSException {
+ final Session session = connection.createSession(false, Session.DUPS_OK_ACKNOWLEDGE);
+ final Topic topic = session.createTopic("test");
+ final MessageProducer producer = session.createProducer(topic);
producer.send(session.createMessage());
producer.close();
session.close();
@@ -530,7 +529,7 @@ public class SetterInjectionStatefulBean
public void lookupPersistenceUnit() throws TestFailureException {
try {
Assert.assertNotNull("The EntityManagerFactory is null", emfField);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -542,10 +541,10 @@ public class SetterInjectionStatefulBean
try {
// call a do nothing method to assure entity manager actually exists
emField.getFlushMode();
- } catch (Exception e) {
+ } catch (final Exception e) {
Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -554,7 +553,7 @@ public class SetterInjectionStatefulBean
try {
// TODO: DMB: Can't seem to find where to make this work
// Assert.assertNotNull("The SessionContext is null", ejbContext);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
@@ -569,10 +568,10 @@ public class SetterInjectionStatefulBean
public void ejbRemove() throws EJBException, RemoteException {
}
- public void setSessionContext(SessionContext sessionContext) throws EJBException, RemoteException {
+ public void setSessionContext(final SessionContext sessionContext) throws EJBException, RemoteException {
}
-
- public String remove(String arg) {
+
+ public String remove(final String arg) {
return arg;
- }
+ }
}
Modified: tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/AnnotatedFieldInjectionStatelessBean.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/AnnotatedFieldInjectionStatelessBean.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/AnnotatedFieldInjectionStatelessBean.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/AnnotatedFieldInjectionStatelessBean.java Tue Jul 15 21:55:09 2014
@@ -67,11 +67,11 @@ public class AnnotatedFieldInjectionStat
@Resource
private Integer inteeger = 1;
@Resource
- private Short shoort = (short)1;
+ private Short shoort = (short) 1;
@Resource
private Boolean booolean = true;
@Resource
- private Byte byyte = (byte)1;
+ private Byte byyte = (byte) 1;
@Resource
private Character chaaracter = 'D';
@Resource
@@ -106,7 +106,7 @@ public class AnnotatedFieldInjectionStat
public void lookupEntityBean() throws TestFailureException {
try {
Assert.assertNotNull("The EJBObject is null", bmpHome);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -114,7 +114,7 @@ public class AnnotatedFieldInjectionStat
public void lookupStatefulBean() throws TestFailureException {
try {
Assert.assertNotNull("The EJBObject is null", statefulHome);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -122,7 +122,7 @@ public class AnnotatedFieldInjectionStat
public void lookupStatelessBean() throws TestFailureException {
try {
Assert.assertNotNull("The EJBObject is null", statelessHome);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -130,7 +130,7 @@ public class AnnotatedFieldInjectionStat
public void lookupStatelessBusinessLocal() throws TestFailureException {
try {
Assert.assertNotNull("The EJB BusinessLocal is null", statelessBusinessLocal);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -138,7 +138,7 @@ public class AnnotatedFieldInjectionStat
public void lookupStatelessBusinessRemote() throws TestFailureException {
try {
Assert.assertNotNull("The EJB BusinessRemote is null", statelessBusinessRemote);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -146,7 +146,7 @@ public class AnnotatedFieldInjectionStat
public void lookupStatefulBusinessLocal() throws TestFailureException {
try {
Assert.assertNotNull("The EJB BusinessLocal is null", statefulBusinessLocal);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -154,7 +154,7 @@ public class AnnotatedFieldInjectionStat
public void lookupStatefulBusinessLocalBean() throws TestFailureException {
try {
Assert.assertNotNull("The EJB BusinessLocalBean is null", statefulBusinessLocalBean);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -162,107 +162,107 @@ public class AnnotatedFieldInjectionStat
public void lookupStatefulBusinessRemote() throws TestFailureException {
try {
Assert.assertNotNull("The EJB BusinessRemote is null", statefulBusinessRemote);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupStringEntry() throws TestFailureException {
try {
- String expected = new String("1");
+ final String expected = new String("1");
Assert.assertNotNull("The String looked up is null", striing);
Assert.assertEquals(expected, striing);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupDoubleEntry() throws TestFailureException {
try {
- Double expected = new Double(1.0D);
+ final Double expected = new Double(1.0D);
Assert.assertNotNull("The Double looked up is null", doouble);
Assert.assertEquals(expected, doouble);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupLongEntry() throws TestFailureException {
try {
- Long expected = new Long(1L);
+ final Long expected = new Long(1L);
Assert.assertNotNull("The Long looked up is null", loong);
Assert.assertEquals(expected, loong);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupFloatEntry() throws TestFailureException {
try {
- Float expected = new Float(1.0F);
+ final Float expected = new Float(1.0F);
Assert.assertNotNull("The Float looked up is null", flooat);
Assert.assertEquals(expected, flooat);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupIntegerEntry() throws TestFailureException {
try {
- Integer expected = new Integer(1);
+ final Integer expected = new Integer(1);
Assert.assertNotNull("The Integer looked up is null", inteeger);
Assert.assertEquals(expected, inteeger);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupShortEntry() throws TestFailureException {
try {
- Short expected = new Short((short) 1);
+ final Short expected = new Short((short) 1);
Assert.assertNotNull("The Short looked up is null", shoort);
Assert.assertEquals(expected, shoort);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupBooleanEntry() throws TestFailureException {
try {
- Boolean expected = new Boolean(true);
+ final Boolean expected = new Boolean(true);
Assert.assertNotNull("The Boolean looked up is null", booolean);
Assert.assertEquals(expected, booolean);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupByteEntry() throws TestFailureException {
try {
- Byte expected = new Byte((byte) 1);
+ final Byte expected = new Byte((byte) 1);
Assert.assertNotNull("The Byte looked up is null", byyte);
Assert.assertEquals(expected, byyte);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
public void lookupCharacterEntry() throws TestFailureException {
try {
- Character expected = new Character('D');
+ final Character expected = new Character('D');
Assert.assertNotNull("The Character looked up is null", chaaracter);
Assert.assertEquals(expected, chaaracter);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -270,30 +270,30 @@ public class AnnotatedFieldInjectionStat
public void lookupResource() throws TestFailureException {
try {
Assert.assertNotNull("The DataSource is null", daataSource);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
- public void lookupJMSConnectionFactory() throws TestFailureException{
- try{
- try{
+ public void lookupJMSConnectionFactory() throws TestFailureException {
+ try {
+ try {
testJmsConnection(coonnectionFactory.createConnection());
testJmsConnection(queueCoonnectionFactory.createConnection());
testJmsConnection(topicCoonnectionFactory.createConnection());
- } catch (Exception e){
+ } catch (final Exception e) {
e.printStackTrace();
- Assert.fail("Received Exception "+e.getClass()+ " : "+e.getMessage());
+ Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
- } catch (AssertionFailedError afe){
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
- private void testJmsConnection(javax.jms.Connection connection) throws JMSException {
- Session session = connection.createSession(false, Session.DUPS_OK_ACKNOWLEDGE);
- Topic topic = session.createTopic("test");
- MessageProducer producer = session.createProducer(topic);
+ private void testJmsConnection(final javax.jms.Connection connection) throws JMSException {
+ final Session session = connection.createSession(false, Session.DUPS_OK_ACKNOWLEDGE);
+ final Topic topic = session.createTopic("test");
+ final MessageProducer producer = session.createProducer(topic);
producer.send(session.createMessage());
producer.close();
session.close();
@@ -303,7 +303,7 @@ public class AnnotatedFieldInjectionStat
public void lookupPersistenceUnit() throws TestFailureException {
try {
Assert.assertNotNull("The EntityManagerFactory is null", emf);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -315,10 +315,10 @@ public class AnnotatedFieldInjectionStat
try {
// call a do nothing method to assure entity manager actually exists
em.getFlushMode();
- } catch (Exception e) {
+ } catch (final Exception e) {
Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
@@ -327,19 +327,19 @@ public class AnnotatedFieldInjectionStat
try {
// TODO: DMB: Can't seem to find where to make this work
// Assert.assertNotNull("The SessionContext is null", ejbContext);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
- public void lookupStatelessBusinessLocalBean() throws TestFailureException{
+ public void lookupStatelessBusinessLocalBean() throws TestFailureException {
try {
Assert.assertNotNull("The EJB BusinessLocalBean is null", statelessBusinessLocalBean);
- } catch (AssertionFailedError afe) {
+ } catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
-
+
}
Modified: tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BasicStatelessBean.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BasicStatelessBean.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BasicStatelessBean.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BasicStatelessBean.java Tue Jul 15 21:55:09 2014
@@ -57,13 +57,13 @@ public class BasicStatelessBean implemen
* @return
* @see BasicStatelessObject#businessMethod
*/
- public String businessMethod(String text) {
+ public String businessMethod(final String text) {
testAllowedOperations("businessMethod");
- StringBuffer b = new StringBuffer(text);
+ final StringBuffer b = new StringBuffer(text);
return b.reverse().toString();
}
- public void scheduleTimer(String name) {
+ public void scheduleTimer(final String name) {
ejbContext.getTimerService().createTimer(1, name);
}
@@ -108,13 +108,13 @@ public class BasicStatelessBean implemen
* @return
* @see BasicStatelessObject#getAllowedOperationsReport
*/
- public OperationsPolicy getAllowedOperationsReport(String methodName) {
+ public OperationsPolicy getAllowedOperationsReport(final String methodName) {
return (OperationsPolicy) allowedOperationsTable.get(methodName);
}
-
- public String remove(String str){
+
+ public String remove(final String str) {
return str;
- }
+ }
//
// Remote interface methods
@@ -128,7 +128,7 @@ public class BasicStatelessBean implemen
* Set the associated session context. The container calls this method
* after the instance creation.
*/
- public void setSessionContext(SessionContext ctx) throws EJBException, RemoteException {
+ public void setSessionContext(final SessionContext ctx) throws EJBException, RemoteException {
ejbContext = ctx;
testAllowedOperations("setSessionContext");
}
@@ -173,13 +173,13 @@ public class BasicStatelessBean implemen
// Should never called.
}
- public void ejbTimeout(Timer timer) {
+ public void ejbTimeout(final Timer timer) {
testAllowedOperations("ejbTimeout");
try {
- String name = (String) timer.getInfo();
- TimerSync timerSync = (TimerSync) ejbContext.lookup("TimerSyncBeanBusinessRemote");
+ final String name = (String) timer.getInfo();
+ final TimerSync timerSync = (TimerSync) ejbContext.lookup("TimerSyncBeanBusinessRemote");
timerSync.countDown(name);
- } catch (Exception e) {
+ } catch (final Exception e) {
e.printStackTrace();
}
}
@@ -188,56 +188,56 @@ public class BasicStatelessBean implemen
// SessionBean interface methods
//================================
- protected void testAllowedOperations(String methodName) {
- OperationsPolicy policy = new OperationsPolicy();
+ protected void testAllowedOperations(final String methodName) {
+ final OperationsPolicy policy = new OperationsPolicy();
/*[0] Test getEJBHome /////////////////*/
try {
ejbContext.getEJBHome();
policy.allow(OperationsPolicy.Context_getEJBHome);
- } catch (IllegalStateException ise) {
+ } catch (final IllegalStateException ise) {
}
/*[1] Test getCallerPrincipal /////////*/
try {
ejbContext.getCallerPrincipal();
policy.allow(OperationsPolicy.Context_getCallerPrincipal);
- } catch (IllegalStateException ise) {
+ } catch (final IllegalStateException ise) {
}
/*[2] Test isCallerInRole /////////////*/
try {
ejbContext.isCallerInRole("TheMan");
policy.allow(OperationsPolicy.Context_isCallerInRole);
- } catch (IllegalStateException ise) {
+ } catch (final IllegalStateException ise) {
}
/*[3] Test getRollbackOnly ////////////*/
try {
ejbContext.getRollbackOnly();
policy.allow(OperationsPolicy.Context_getRollbackOnly);
- } catch (IllegalStateException ise) {
+ } catch (final IllegalStateException ise) {
}
/*[4] Test setRollbackOnly ////////////*/
try {
ejbContext.setRollbackOnly();
policy.allow(OperationsPolicy.Context_setRollbackOnly);
- } catch (IllegalStateException ise) {
+ } catch (final IllegalStateException ise) {
}
/*[5] Test getUserTransaction /////////*/
try {
ejbContext.getUserTransaction();
policy.allow(OperationsPolicy.Context_getUserTransaction);
- } catch (IllegalStateException ise) {
+ } catch (final IllegalStateException ise) {
}
/*[6] Test getEJBObject ///////////////*/
try {
ejbContext.getEJBObject();
policy.allow(OperationsPolicy.Context_getEJBObject);
- } catch (IllegalStateException ise) {
+ } catch (final IllegalStateException ise) {
}
/*[7] Test Context_getPrimaryKey ///////////////
@@ -247,27 +247,27 @@ public class BasicStatelessBean implemen
/*[8] Test JNDI_access_to_java_comp_env ///////////////*/
try {
- InitialContext jndiContext = new InitialContext();
+ final InitialContext jndiContext = new InitialContext();
- String actual = (String) jndiContext.lookup("java:comp/env/stateless/references/JNDI_access_to_java_comp_env");
+ final String actual = (String) jndiContext.lookup("java:comp/env/stateless/references/JNDI_access_to_java_comp_env");
policy.allow(OperationsPolicy.JNDI_access_to_java_comp_env);
- } catch (IllegalStateException ise) {
- } catch (NamingException ne) {
+ } catch (final IllegalStateException ise) {
+ } catch (final NamingException ne) {
}
/*[11] Test lookup /////////*/
try {
ejbContext.lookup("stateless/references/JNDI_access_to_java_comp_env");
policy.allow(OperationsPolicy.Context_lookup);
- } catch (IllegalArgumentException ise) {
+ } catch (final IllegalArgumentException ise) {
}
/*[12] Test getTimerService/////////*/
try {
ejbContext.getTimerService();
policy.allow(OperationsPolicy.Context_getTimerService);
- } catch (IllegalStateException ise) {
+ } catch (final IllegalStateException ise) {
}
allowedOperationsTable.put(methodName, policy);
Modified: tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BasicStatelessBusinessLocal.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BasicStatelessBusinessLocal.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BasicStatelessBusinessLocal.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BasicStatelessBusinessLocal.java Tue Jul 15 21:55:09 2014
@@ -34,13 +34,11 @@ public interface BasicStatelessBusinessL
/**
* Throws an ApplicationException when invoked
- *
*/
public void throwApplicationException() throws ApplicationException;
/**
* Throws an Annotated ApplicationException when invoked
- *
*/
public void throwAnnotatedApplicationException();
@@ -49,7 +47,6 @@ public interface BasicStatelessBusinessL
* This is a system exception and should result in the
* destruction of the instance and invalidation of the
* remote reference.
- *
*/
public void throwSystemException_NullPointer();
@@ -69,10 +66,10 @@ public interface BasicStatelessBusinessL
* @return operations policy
*/
public OperationsPolicy getAllowedOperationsReport(String methodName);
-
+
/**
* Verify if we can invoke remove() on a stateless session bean as a business method
- */
+ */
public Object remove();
}
Modified: tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BasicStatelessBusinessRemote.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BasicStatelessBusinessRemote.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BasicStatelessBusinessRemote.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BasicStatelessBusinessRemote.java Tue Jul 15 21:55:09 2014
@@ -34,7 +34,6 @@ public interface BasicStatelessBusinessR
/**
* Throws an ApplicationException when invoked
- *
*/
public void throwApplicationException() throws ApplicationException;
@@ -43,7 +42,6 @@ public interface BasicStatelessBusinessR
* This is a system exception and should result in the
* destruction of the instance and invalidation of the
* remote reference.
- *
*/
public void throwSystemException_NullPointer();
@@ -63,9 +61,9 @@ public interface BasicStatelessBusinessR
* @return operations policy
*/
public OperationsPolicy getAllowedOperationsReport(String methodName);
-
+
/**
* Verify if we can invoke remove() on a stateless session bean as a business method
- */
+ */
public Object remove();
}
Modified: tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BasicStatelessHome.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BasicStatelessHome.java?rev=1610862&r1=1610861&r2=1610862&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BasicStatelessHome.java (original)
+++ tomee/tomee/trunk/itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateless/BasicStatelessHome.java Tue Jul 15 21:55:09 2014
@@ -20,5 +20,5 @@ package org.apache.openejb.test.stateles
public interface BasicStatelessHome extends javax.ejb.EJBHome {
public BasicStatelessObject createObject()
- throws javax.ejb.CreateException, java.rmi.RemoteException;
+ throws javax.ejb.CreateException, java.rmi.RemoteException;
}