dain        2005/02/02 22:11:00

  Modified:    modules/itests/src/itest/org/openejb/test/entity/cmp
                        CmpAllowedOperationsTests.java CmpEjbHomeTests.java
  Log:

  Reenabled tests for ejbHome method
  Cleaned up intellij warnings
  
  Revision  Changes    Path
  1.3       +5 -5      
openejb/modules/itests/src/itest/org/openejb/test/entity/cmp/CmpAllowedOperationsTests.java
  
  Index: CmpAllowedOperationsTests.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/itests/src/itest/org/openejb/test/entity/cmp/CmpAllowedOperationsTests.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CmpAllowedOperationsTests.java    14 Oct 2004 07:07:17 -0000      1.2
  +++ CmpAllowedOperationsTests.java    3 Feb 2005 03:11:00 -0000       1.3
  @@ -214,7 +214,7 @@
           // Change the object... ejbStore
   //      ejbObject.setLastName("Changed");
   
  -//      ejbHome.sum(1, 2);
  +      ejbHome.sum(1, 2);
       }
   
       //=====================================
  @@ -339,7 +339,7 @@
        * 
______________________|__________________________________________________
        * </PRE>
        */
  -    public void TODO_test04_ejbPostCreate() {
  +    public void test04_ejbPostCreate() {
           try {
   
               OperationsPolicy policy = new OperationsPolicy();
  @@ -515,7 +515,7 @@
        * 
______________________|__________________________________________________
        * </PRE>
        */
  -    public void TODO_test08_ejbHome() {
  +    public void test08_ejbHome() {
           try {
   
               OperationsPolicy policy = new OperationsPolicy();
  @@ -714,7 +714,7 @@
        * 
______________________|__________________________________________________
        * </PRE>
        */
  -    public void TODO_test13_ejbStore() {
  +    public void test13_ejbStore() {
           try {
   
               OperationsPolicy policy = new OperationsPolicy();
  
  
  
  1.3       +10 -1     
openejb/modules/itests/src/itest/org/openejb/test/entity/cmp/CmpEjbHomeTests.java
  
  Index: CmpEjbHomeTests.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/itests/src/itest/org/openejb/test/entity/cmp/CmpEjbHomeTests.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CmpEjbHomeTests.java      14 Oct 2004 07:07:17 -0000      1.2
  +++ CmpEjbHomeTests.java      3 Feb 2005 03:11:00 -0000       1.3
  @@ -98,6 +98,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