sebb        2003/12/13 17:33:43

  Modified:    src/components/org/apache/jmeter/control
                        OnceOnlyController.java
  Log:
  Tidy up test code
  
  Revision  Changes    Path
  1.10      +5 -17     
jakarta-jmeter/src/components/org/apache/jmeter/control/OnceOnlyController.java
  
  Index: OnceOnlyController.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/components/org/apache/jmeter/control/OnceOnlyController.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- OnceOnlyController.java   19 Oct 2003 22:15:38 -0000      1.9
  +++ OnceOnlyController.java   14 Dec 2003 01:33:43 -0000      1.10
  @@ -56,10 +56,9 @@
   
   import java.io.Serializable;
   
  -import junit.framework.TestSuite;
  -
   import org.apache.jmeter.engine.event.LoopIterationEvent;
   import org.apache.jmeter.engine.event.LoopIterationListener;
  +import org.apache.jmeter.junit.JMeterTestCase;
   import org.apache.jmeter.junit.stubs.TestSampler;
   import org.apache.jmeter.samplers.Sampler;
   import org.apache.jmeter.testelement.TestElement;
  @@ -97,7 +96,9 @@
           return null;
       }
   
  -    public static class Test extends junit.framework.TestCase
  +/////////////////////////// Start of Test Code ///////////////////////////
  +
  +    public static class Test extends JMeterTestCase
       {
           public Test(String name)
           {
  @@ -230,18 +231,5 @@
                   }
               }
           }
  -    }
  -
  -    public static void main(String args[])
  -    {
  -        junit.textui.TestRunner.run(suite());
  -    }
  -
  -    public static TestSuite suite()
  -    {
  -        TestSuite suite = new TestSuite();
  -        suite.addTest(new Test("testProcessing"));
  -        suite.addTest(new Test("testProcessing2"));
  -        return suite;
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to