You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ev...@apache.org on 2004/02/27 07:06:32 UTC

cvs commit: maven-plugins/genapp/src/plugin-resources/ejb/template-resources/src/test-cactus SanityWithCactusTest.java SanityWithCactus.java

evenisse    2004/02/26 22:06:32

  Added:       genapp/src/plugin-resources/ejb/template-resources/src/test-cactus
                        SanityWithCactusTest.java
  Removed:     genapp/src/plugin-resources/ejb/template-resources/src/test-cactus
                        SanityWithCactus.java
  Log:
  Rename cactus test class
  
  Revision  Changes    Path
  1.1                  maven-plugins/genapp/src/plugin-resources/ejb/template-resources/src/test-cactus/SanityWithCactusTest.java
  
  Index: SanityWithCactusTest.java
  ===================================================================
  package @PACKAGE@;
  
  import org.apache.cactus.ServletTestCase;
  
  /**
   * This tests the facade methods using the Cactus framework.
   *
   * @author <a href="trajano@yahoo.com">Archimedes Trajano</a>
   * @version $Id: SanityWithCactusTest.java,v 1.1 2004/02/27 06:06:32 evenisse Exp $
   */
  public class SanityWithCactusTest extends ServletTestCase {
  
      public void testGetLocalHome() throws Exception {
          ExampleFacadeUtil.getLocalHome();
      }
  
      public void testGetFacade() throws Exception {
          ExampleFacadeUtil.getLocalHome().create();
      }
  
      public void testSetName() throws Exception {
          ExampleFacadeLocal facade = ExampleFacadeUtil.getLocalHome().create();
          Integer id = facade.getId("Foo");
          assertEquals("Foo", facade.getName(id));
          facade.setName(id,  "Bar");
          assertEquals(id,facade.getId("Bar"));
          assertEquals("Bar", facade.getName(id));
          facade.setName(id,  "Foo");
          assertEquals("Foo", facade.getName(id));
      }
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org