User: fleury  
  Date: 00/05/21 19:22:47

  Modified:    src/java/org/jboss/zol/testbean/client EjbossClient.java
  Log:
  The new Client test for the Home to see for non null
  
  Revision  Changes    Path
  1.4       +18 -3     zola/src/java/org/jboss/zol/testbean/client/EjbossClient.java
  
  Index: EjbossClient.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/zola/src/java/org/jboss/zol/testbean/client/EjbossClient.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- EjbossClient.java 2000/05/11 19:11:15     1.3
  +++ EjbossClient.java 2000/05/22 02:22:46     1.4
  @@ -30,7 +30,7 @@
    * It works with the HelloWorld2.jar bean jar.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
  - * @version $Id: EjbossClient.java,v 1.3 2000/05/11 19:11:15 sylvain Exp $
  + * @version $Id: EjbossClient.java,v 1.4 2000/05/22 02:22:46 fleury Exp $
    */
   public class EjbossClient {
   
  @@ -45,7 +45,7 @@
               System.out.println("Copyright (C), The EJBoss Organization, 2000");
               System.out.println("_____________________________________________");
               System.out.println();
  -            System.out.println("Welcome to the test Suite v0.7");
  +            System.out.println("Welcome to the test Suite v0.9");
               System.out.println("_____________________________________________");
               System.out.println();
               System.out.print("Trying the context...");
  @@ -75,6 +75,11 @@
               StatelessSession statelessSession =
                   statelessSessionHome.create();
               if (statelessSession != null) System.out.println("ok");
  +
  +            System.out.print("Calling getEJBHome() on StatelessSession...");
  +            if (statelessSession.getEJBHome() != null) System.out.println("ok");
  +            else throw new Exception ("Null home not OK");
  +            
               System.out.print("Calling Business Method A on StatelessSession... ");
               statelessSession.callBusinessMethodA();
               System.out.println("ok");
  @@ -122,6 +127,9 @@
               StatefulSession statefulSession =
                   statefulSessionHome.create("Marc");
               if (statefulSession != null) System.out.println("ok");
  +            System.out.print("Calling getEJBHome() on StatefulSession...");
  +            if (statefulSession.getEJBHome() != null) System.out.println("ok");
  +            else throw new Exception ("null home not ok");
               System.out.println("Calling Business Method A on StatefulSession... ");
               System.out.println(statefulSession.callBusinessMethodA());
               System.out.println("Calling Business Method A (state) on 
StatefulSession... ");
  @@ -163,6 +171,9 @@
               catch (DuplicateKeyException dke) {
                   System.out.println("ok");
               }
  +            System.out.print("Calling getEJBHome() on EntityCMP...");
  +            if (enterpriseEntity.getEJBHome() != null) System.out.println("ok");
  +            else throw new Exception ("new home not ok");
   
               System.out.println("Calling Business Method A on enterpriseEntity... ");
               System.out.println(enterpriseEntity.callBusinessMethodA());
  @@ -193,11 +204,15 @@
   
               // Let's call a business method to see the flow of server calls
   
  +            System.out.print("Calling getEJBHome() on EntityBMP...");
  +            if (bmpBean.getEJBHome() != null) System.out.println("ok");
  +            else throw new Exception("Null Home");
  +
               System.out.print("Calling business methodA on BMP bean...");
               bmpBean.callBusinessMethodA();
               System.out.println("Calling business methodB (B2B) on BMP bean and it 
says ");
               System.out.println(bmpBean.callBusinessMethodB());
  -            
  +
               System.out.println("calling findCollectionKeys....");
               Collection pks = bmpHome.findCollectionKeys(3);
               Iterator pkIterator = pks.iterator();
  
  
  

Reply via email to