sebb        2003/12/05 21:21:56

  Modified:    src/core/org/apache/jmeter/resources PackageTest.java
  Log:
  Implement makeSuite() method
  
  Revision  Changes    Path
  1.2       +18 -8     
jakarta-jmeter/src/core/org/apache/jmeter/resources/PackageTest.java
  
  Index: PackageTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/resources/PackageTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PackageTest.java  30 Nov 2003 01:57:11 -0000      1.1
  +++ PackageTest.java  6 Dec 2003 05:21:56 -0000       1.2
  @@ -139,12 +139,22 @@
                }
        }
        
  +     /*
  +      * Add makeSuite to allow test to be run from AllTests.java
  +      */
  +     public static Test makeSuite(){
  +             return suite();
  +     }
  +     
  +     /*
  +      * Use a suite to ensure that the default is done first
  +      */
        public static Test suite(){
                TestSuite ts=new TestSuite();
  -             ts.addTest(new PackageTest("testDefault"));
  -             ts.addTest(new PackageTest("testDE"));
  -             ts.addTest(new PackageTest("testNO"));
  -             ts.addTest(new PackageTest("testJA"));
  +             ts.addTest(new PackageTest("atestDefault"));
  +             ts.addTest(new PackageTest("atestDE"));
  +             ts.addTest(new PackageTest("atestNO"));
  +             ts.addTest(new PackageTest("atestJA"));
                return ts;
        }
   
  @@ -156,20 +166,20 @@
           subTestFailures=0;
       }
   
  -    public void testDE() throws Exception
  +    public void atestDE() throws Exception
        {
                check("DE");
        }
   
  -    public void testJA() throws Exception
  +    public void atestJA() throws Exception
        {
                check("JA");
        }
  -     public void testNO() throws Exception
  +     public void atestNO() throws Exception
        {
                check("NO");
        }
  -     public void testDefault() throws Exception
  +     public void atestDefault() throws Exception
        {
                check("");
        }
  
  
  

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

Reply via email to