dain        2005/02/02 22:11:00

  Modified:    modules/itests/src/itest/org/openejb/test/entity/cmp2
                        Cmp2AllowedOperationsTests.java
                        Cmp2EjbHomeTests.java
  Log:

  Reenabled tests for ejbHome method
  Cleaned up intellij warnings
  
  Revision  Changes    Path
  1.2       +5 -5      
openejb/modules/itests/src/itest/org/openejb/test/entity/cmp2/Cmp2AllowedOperationsTests.java
  
  Index: Cmp2AllowedOperationsTests.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/itests/src/itest/org/openejb/test/entity/cmp2/Cmp2AllowedOperationsTests.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Cmp2AllowedOperationsTests.java   14 Oct 2004 19:47:28 -0000      1.1
  +++ Cmp2AllowedOperationsTests.java   3 Feb 2005 03:11:00 -0000       1.2
  @@ -217,7 +217,7 @@
           // Change the object... ejbStore
   //      ejbObject.setLastName("Changed");
   
  -//      ejbHome.sum(1, 2);
  +      ejbHome.sum(1, 2);
       }
   
       //=====================================
  @@ -342,7 +342,7 @@
        * 
______________________|__________________________________________________
        * </PRE>
        */
  -    public void TODO_test04_ejbPostCreate() {
  +    public void test04_ejbPostCreate() {
           try {
   
               OperationsPolicy policy = new OperationsPolicy();
  @@ -518,7 +518,7 @@
        * 
______________________|__________________________________________________
        * </PRE>
        */
  -    public void TODO_test08_ejbHome() {
  +    public void test08_ejbHome() {
           try {
   
               OperationsPolicy policy = new OperationsPolicy();
  @@ -717,7 +717,7 @@
        * 
______________________|__________________________________________________
        * </PRE>
        */
  -    public void TODO_test13_ejbStore() {
  +    public void test13_ejbStore() {
           try {
   
               OperationsPolicy policy = new OperationsPolicy();
  
  
  
  1.2       +10 -1     
openejb/modules/itests/src/itest/org/openejb/test/entity/cmp2/Cmp2EjbHomeTests.java
  
  Index: Cmp2EjbHomeTests.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/itests/src/itest/org/openejb/test/entity/cmp2/Cmp2EjbHomeTests.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Cmp2EjbHomeTests.java     14 Oct 2004 19:47:28 -0000      1.1
  +++ Cmp2EjbHomeTests.java     3 Feb 2005 03:11:00 -0000       1.2
  @@ -100,6 +100,15 @@
               fail("Received Exception " + e.getClass() + " : " + 
e.getMessage());
           }
       }
  +
  +    public void test04_ejbHomeMethod() {
  +        try {
  +            assertEquals(8+9, ejbHome.sum(8, 9));
  +        } catch (Throwable e) {
  +            e.printStackTrace();
  +            fail("Received Exception " + e.getClass() + " : " + 
e.getMessage());
  +        }
  +    }
       //
       // Test ejb home methods
       //===============================
  
  
  

Reply via email to