You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by ep...@apache.org on 2004/10/30 15:18:51 UTC

cvs commit: jakarta-turbine-fulcrum/yaafi/src/test/org/apache/fulcrum/yaafi TestComponentTest.java

epugh       2004/10/30 06:18:51

  Modified:    yaafi/src/test/org/apache/fulcrum/yaafi
                        TestComponentTest.java
  Log:
  tweak test, don't need suite
  
  Revision  Changes    Path
  1.2       +4 -29     jakarta-turbine-fulcrum/yaafi/src/test/org/apache/fulcrum/yaafi/TestComponentTest.java
  
  Index: TestComponentTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-fulcrum/yaafi/src/test/org/apache/fulcrum/yaafi/TestComponentTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestComponentTest.java	19 Oct 2004 22:03:51 -0000	1.1
  +++ TestComponentTest.java	30 Oct 2004 13:18:51 -0000	1.2
  @@ -54,9 +54,6 @@
    * <http://www.apache.org/>.
    */
   
  -import junit.framework.Test;
  -import junit.framework.TestSuite;
  -
   import org.apache.fulcrum.yaafi.testcontainer.BaseUnitTest;
   
   /**
  @@ -77,28 +74,6 @@
           super(name);
       }
   
  -    /** Common test fixture */
  -
  -    protected void setUp() throws Exception
  -    {
  -    }
  -
  -    protected void tearDown() throws Exception
  -    {
  -    }
  -
  -    /**
  -     * Add all of our test suites
  -     */
  -
  -    public static Test suite()
  -    {
  -        TestSuite suite= new TestSuite();
  -
  -        suite.addTest( new TestComponentTest("testTestComponent") );
  -        
  -        return suite;
  -    }
       
       public void testTestComponent() throws Exception
       {
  @@ -108,8 +83,8 @@
           
           testComponent.test();
           
  -        this.assertEquals( ((TestComponentImpl) testComponent).bar, "BAR" );
  -        this.assertEquals( ((TestComponentImpl) testComponent).foo, "FOO" );
  -        this.assertNotNull( ((TestComponentImpl) testComponent).appRoot );
  +        assertEquals( ((TestComponentImpl) testComponent).bar, "BAR" );
  +        assertEquals( ((TestComponentImpl) testComponent).foo, "FOO" );
  +        assertNotNull( ((TestComponentImpl) testComponent).appRoot );
       }
   }
  
  
  

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