james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r691188 - in /james/jsieve/trunk/src/test/java/org/apache/jsieve: ./ junit/ parser/address/ util/check/
Date Tue, 02 Sep 2008 10:34:50 GMT
Author: bago
Date: Tue Sep  2 03:34:49 2008
New Revision: 691188

URL: http://svn.apache.org/viewvc?rev=691188&view=rev
Log:
Clean-up junit tests from unnecessary setup/teardown/constructor/main methods.

Modified:
    james/jsieve/trunk/src/test/java/org/apache/jsieve/SieveParserVisitorImplQuoteTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/AddressTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/AllOfTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/AnyOfTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/BodyTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/ConditionTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/ConfigurationManagerTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/DiscardTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/EnvelopeTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/ExistsTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/FalseTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/FileIntoTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/HeaderTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/KeepTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/LogTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/NotTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/RejectTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/RequireMissingTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/RequireTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/SizeTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/StopTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/TrueTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/parser/address/SieveAddressBuilderTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterActionsTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterHeadersTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterMailTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterNoMessageSetTest.java
    james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckerTestActionsTest.java

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/SieveParserVisitorImplQuoteTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/SieveParserVisitorImplQuoteTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/SieveParserVisitorImplQuoteTest.java
(original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/SieveParserVisitorImplQuoteTest.java
Tue Sep  2 03:34:49 2008
@@ -42,10 +42,6 @@
         node = new ASTstring(100);
     }
 
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     public void testVisitASTstringObjectQuoted() {
 
         node.setValue("\"value\"");

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/AddressTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/AddressTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/AddressTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/AddressTest.java Tue Sep  2 03:34:49
2008
@@ -35,29 +35,6 @@
 public class AddressTest extends TestCase {
 
     /**
-     * Constructor for AddressTest.
-     * 
-     * @param arg0
-     */
-    public AddressTest(String arg0) {
-        super(arg0);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Test 'address'
      */
     public void testIfAddressAllIsTrue() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/AllOfTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/AllOfTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/AllOfTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/AllOfTest.java Tue Sep  2 03:34:49
2008
@@ -19,49 +19,20 @@
 
 package org.apache.jsieve.junit;
 
-import junit.framework.TestCase;
-
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.exception.SyntaxException;
 import org.apache.jsieve.junit.commands.ThrowTestException;
 import org.apache.jsieve.junit.utils.JUnitUtils;
 import org.apache.jsieve.parser.generated.ParseException;
 
+import junit.framework.TestCase;
+
 /**
  * Class AllOfTest
  */
 public class AllOfTest extends TestCase {
 
     /**
-     * Constructor for TrueTest.
-     * 
-     * @param arg0
-     */
-    public AllOfTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(AllOfTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Test 'allof'
      */
     public void testIfAllOfFalseTrue() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/AnyOfTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/AnyOfTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/AnyOfTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/AnyOfTest.java Tue Sep  2 03:34:49
2008
@@ -19,49 +19,20 @@
 
 package org.apache.jsieve.junit;
 
-import junit.framework.TestCase;
-
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.exception.SyntaxException;
 import org.apache.jsieve.junit.commands.ThrowTestException;
 import org.apache.jsieve.junit.utils.JUnitUtils;
 import org.apache.jsieve.parser.generated.ParseException;
 
+import junit.framework.TestCase;
+
 /**
  * Class AnyOfTest
  */
 public class AnyOfTest extends TestCase {
 
     /**
-     * Constructor for TrueTest.
-     * 
-     * @param arg0
-     */
-    public AnyOfTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(AnyOfTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Test 'anyof'
      */
     public void testIfAnyOfFalseTrue() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/BodyTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/BodyTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/BodyTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/BodyTest.java Tue Sep  2 03:34:49
2008
@@ -24,8 +24,6 @@
 
 import junit.framework.TestCase;
 
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.junit.commands.ThrowTestException;
 import org.apache.jsieve.junit.utils.JUnitUtils;
@@ -37,33 +35,6 @@
  */
 public class BodyTest extends TestCase {
 
-    /**
-     * Constructor for BodyTest.
-     * 
-     * @param arg0
-     */
-    public BodyTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(BodyTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     protected SieveMailAdapter textMail() throws MessagingException {
         SieveMailAdapter mail = (SieveMailAdapter) JUnitUtils.createMail();
         mail.getMessage().setContent("Wibble\n\n" + "Wibble\n", "text/plain");

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/ConditionTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/ConditionTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/ConditionTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/ConditionTest.java Tue Sep  2
03:34:49 2008
@@ -21,8 +21,6 @@
 
 import junit.framework.TestCase;
 
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.CommandException;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.exception.SyntaxException;
@@ -37,33 +35,6 @@
 public class ConditionTest extends TestCase {
 
     /**
-     * Constructor for ConditionTest.
-     * 
-     * @param arg0
-     */
-    public ConditionTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(ConditionTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Command 'if' with an argument of 'true'
      */
     public void testIfTrue() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/ConfigurationManagerTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/ConfigurationManagerTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/ConfigurationManagerTest.java
(original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/ConfigurationManagerTest.java
Tue Sep  2 03:34:49 2008
@@ -34,33 +34,6 @@
 public class ConfigurationManagerTest extends TestCase {
 
     /**
-     * Constructor for ConfigurationManagerTest.
-     * 
-     * @param arg0
-     */
-    public ConfigurationManagerTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(ConfigurationManagerTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test the CommandMap maps 'MUST' and 'SHOULD' be supported commands to the
      * correct classes.
      */

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/DiscardTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/DiscardTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/DiscardTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/DiscardTest.java Tue Sep  2 03:34:49
2008
@@ -21,8 +21,6 @@
 
 import junit.framework.TestCase;
 
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.exception.SyntaxException;
 import org.apache.jsieve.junit.utils.JUnitUtils;
@@ -35,33 +33,6 @@
 public class DiscardTest extends TestCase {
 
     /**
-     * Constructor for DiscardTest.
-     * 
-     * @param arg0
-     */
-    public DiscardTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(DiscardTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Command 'discard' with invalid arguments
      */
     public void testInvalidArguments() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/EnvelopeTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/EnvelopeTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/EnvelopeTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/EnvelopeTest.java Tue Sep  2
03:34:49 2008
@@ -21,8 +21,6 @@
 
 import junit.framework.TestCase;
 
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.junit.commands.ThrowTestException;
 import org.apache.jsieve.junit.utils.JUnitUtils;
@@ -35,33 +33,6 @@
 public class EnvelopeTest extends TestCase {
 
     /**
-     * Constructor for AddressTest.
-     * 
-     * @param arg0
-     */
-    public EnvelopeTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(EnvelopeTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Test 'envelope'
      */
     public void testIfEnvelopeAllIsTrue() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/ExistsTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/ExistsTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/ExistsTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/ExistsTest.java Tue Sep  2 03:34:49
2008
@@ -23,8 +23,6 @@
 
 import junit.framework.TestCase;
 
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.exception.SyntaxException;
 import org.apache.jsieve.junit.commands.ThrowTestException;
@@ -38,33 +36,6 @@
 public class ExistsTest extends TestCase {
 
     /**
-     * Constructor for TrueTest.
-     * 
-     * @param arg0
-     */
-    public ExistsTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(ExistsTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Test 'exists'
      */
     public void testExistsTrue() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/FalseTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/FalseTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/FalseTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/FalseTest.java Tue Sep  2 03:34:49
2008
@@ -19,49 +19,20 @@
 
 package org.apache.jsieve.junit;
 
-import junit.framework.TestCase;
-
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.exception.SyntaxException;
 import org.apache.jsieve.junit.commands.ThrowTestException;
 import org.apache.jsieve.junit.utils.JUnitUtils;
 import org.apache.jsieve.parser.generated.ParseException;
 
+import junit.framework.TestCase;
+
 /**
  * Class FalseTest
  */
 public class FalseTest extends TestCase {
 
     /**
-     * Constructor for TrueTest.
-     * 
-     * @param arg0
-     */
-    public FalseTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(FalseTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Test 'true'
      */
     public void testIfFalse() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/FileIntoTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/FileIntoTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/FileIntoTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/FileIntoTest.java Tue Sep  2
03:34:49 2008
@@ -19,10 +19,6 @@
 
 package org.apache.jsieve.junit;
 
-import junit.framework.TestCase;
-
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.exception.SyntaxException;
 import org.apache.jsieve.junit.utils.JUnitUtils;
@@ -30,39 +26,14 @@
 import org.apache.jsieve.mail.MailAdapter;
 import org.apache.jsieve.parser.generated.ParseException;
 
+import junit.framework.TestCase;
+
 /**
  * Class FileIntoTest
  */
 public class FileIntoTest extends TestCase {
 
     /**
-     * Constructor for FileIntoTest.
-     * 
-     * @param arg0
-     */
-    public FileIntoTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(FileIntoTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Command 'fileinto'
      */
     public void testFileInto() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/HeaderTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/HeaderTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/HeaderTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/HeaderTest.java Tue Sep  2 03:34:49
2008
@@ -19,51 +19,22 @@
 
 package org.apache.jsieve.junit;
 
-import javax.mail.MessagingException;
-
-import junit.framework.TestCase;
-
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.junit.commands.ThrowTestException;
 import org.apache.jsieve.junit.utils.JUnitUtils;
 import org.apache.jsieve.junit.utils.SieveMailAdapter;
 import org.apache.jsieve.parser.generated.ParseException;
 
+import javax.mail.MessagingException;
+
+import junit.framework.TestCase;
+
 /**
  * Class HeaderTest
  */
 public class HeaderTest extends TestCase {
 
     /**
-     * Constructor for HeaderTest.
-     * 
-     * @param arg0
-     */
-    public HeaderTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(HeaderTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Test 'header'
      */
     public void testHeaderIsTrue() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/KeepTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/KeepTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/KeepTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/KeepTest.java Tue Sep  2 03:34:49
2008
@@ -19,10 +19,6 @@
 
 package org.apache.jsieve.junit;
 
-import junit.framework.TestCase;
-
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.exception.SyntaxException;
 import org.apache.jsieve.junit.utils.JUnitUtils;
@@ -30,39 +26,14 @@
 import org.apache.jsieve.mail.MailAdapter;
 import org.apache.jsieve.parser.generated.ParseException;
 
+import junit.framework.TestCase;
+
 /**
  * Class KeepTest
  */
 public class KeepTest extends TestCase {
 
     /**
-     * Constructor for KeepTest.
-     * 
-     * @param arg0
-     */
-    public KeepTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(KeepTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Command 'keep' with invalid arguments
      */
     public void testInvalidArguments() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/LogTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/LogTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/LogTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/LogTest.java Tue Sep  2 03:34:49
2008
@@ -19,47 +19,18 @@
 
 package org.apache.jsieve.junit;
 
-import junit.framework.TestCase;
-
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.junit.utils.JUnitUtils;
 import org.apache.jsieve.parser.generated.ParseException;
 
+import junit.framework.TestCase;
+
 /**
  * Class LogTest
  */
 public class LogTest extends TestCase {
 
     /**
-     * Constructor for LogTest.
-     * 
-     * @param arg0
-     */
-    public LogTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(LogTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Command 'log'.
      */
     public void testLogDebug() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/NotTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/NotTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/NotTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/NotTest.java Tue Sep  2 03:34:49
2008
@@ -19,49 +19,20 @@
 
 package org.apache.jsieve.junit;
 
-import junit.framework.TestCase;
-
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.exception.SyntaxException;
 import org.apache.jsieve.junit.commands.ThrowTestException;
 import org.apache.jsieve.junit.utils.JUnitUtils;
 import org.apache.jsieve.parser.generated.ParseException;
 
+import junit.framework.TestCase;
+
 /**
  * Class NotTest
  */
 public class NotTest extends TestCase {
 
     /**
-     * Constructor for NotTest.
-     * 
-     * @param arg0
-     */
-    public NotTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(NotTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Test 'not'
      */
     public void testIfNotFalse() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/RejectTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/RejectTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/RejectTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/RejectTest.java Tue Sep  2 03:34:49
2008
@@ -19,10 +19,6 @@
 
 package org.apache.jsieve.junit;
 
-import junit.framework.TestCase;
-
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.CommandException;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.exception.SyntaxException;
@@ -31,39 +27,14 @@
 import org.apache.jsieve.mail.MailAdapter;
 import org.apache.jsieve.parser.generated.ParseException;
 
+import junit.framework.TestCase;
+
 /**
  * Class RejectTest
  */
 public class RejectTest extends TestCase {
 
     /**
-     * Constructor for RejectTest.
-     * 
-     * @param arg0
-     */
-    public RejectTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(RejectTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Command 'reject' with invalid arguments
      */
     public void testInvalidArguments() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/RequireMissingTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/RequireMissingTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/RequireMissingTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/RequireMissingTest.java Tue Sep
 2 03:34:49 2008
@@ -19,32 +19,15 @@
 
 package org.apache.jsieve.junit;
 
-import junit.framework.TestCase;
-
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.junit.utils.JUnitUtils;
 import org.apache.jsieve.parser.generated.ParseException;
 
+import junit.framework.TestCase;
+
 /**
  * Class AddressTest
  */
 public class RequireMissingTest extends TestCase {
-
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
     
     /**
      * Tests that unsupported requires are caught before script execution. 

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/RequireTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/RequireTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/RequireTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/RequireTest.java Tue Sep  2 03:34:49
2008
@@ -19,48 +19,19 @@
 
 package org.apache.jsieve.junit;
 
-import junit.framework.TestCase;
-
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.exception.SyntaxException;
 import org.apache.jsieve.junit.utils.JUnitUtils;
 import org.apache.jsieve.parser.generated.ParseException;
 
+import junit.framework.TestCase;
+
 /**
  * Class RequireTest
  */
 public class RequireTest extends TestCase {
 
     /**
-     * Constructor for RequireTest.
-     * 
-     * @param arg0
-     */
-    public RequireTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(RequireTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Command 'require' with a single command that is present
      */
     public void testSingleCommandSatisfied() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/SizeTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/SizeTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/SizeTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/SizeTest.java Tue Sep  2 03:34:49
2008
@@ -19,12 +19,6 @@
 
 package org.apache.jsieve.junit;
 
-import javax.mail.MessagingException;
-
-import junit.framework.TestCase;
-
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.junit.commands.ThrowTestException;
 import org.apache.jsieve.junit.utils.JUnitUtils;
@@ -32,39 +26,16 @@
 import org.apache.jsieve.mail.SieveMailException;
 import org.apache.jsieve.parser.generated.ParseException;
 
+import javax.mail.MessagingException;
+
+import junit.framework.TestCase;
+
 /**
  * Class SizeTest
  */
 public class SizeTest extends TestCase {
 
     /**
-     * Constructor for SizeTest.
-     * 
-     * @param arg0
-     */
-    public SizeTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(SizeTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Test 'size'
      */
     public void testSizeIsOverTrue() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/StopTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/StopTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/StopTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/StopTest.java Tue Sep  2 03:34:49
2008
@@ -19,10 +19,6 @@
 
 package org.apache.jsieve.junit;
 
-import junit.framework.TestCase;
-
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.exception.SyntaxException;
 import org.apache.jsieve.junit.commands.ThrowTestException;
@@ -31,39 +27,14 @@
 import org.apache.jsieve.mail.MailAdapter;
 import org.apache.jsieve.parser.generated.ParseException;
 
+import junit.framework.TestCase;
+
 /**
  * Class StopTest
  */
 public class StopTest extends TestCase {
 
     /**
-     * Constructor for StopTest.
-     * 
-     * @param arg0
-     */
-    public StopTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(StopTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Command 'stop'. This has an implicit Keep.
      */
     public void testStop() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/TrueTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/TrueTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/TrueTest.java (original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/junit/TrueTest.java Tue Sep  2 03:34:49
2008
@@ -19,49 +19,20 @@
 
 package org.apache.jsieve.junit;
 
-import junit.framework.TestCase;
-
-import org.apache.jsieve.CommandManager;
-import org.apache.jsieve.TestManager;
 import org.apache.jsieve.exception.SieveException;
 import org.apache.jsieve.exception.SyntaxException;
 import org.apache.jsieve.junit.commands.ThrowTestException;
 import org.apache.jsieve.junit.utils.JUnitUtils;
 import org.apache.jsieve.parser.generated.ParseException;
 
+import junit.framework.TestCase;
+
 /**
  * Class TrueTest
  */
 public class TrueTest extends TestCase {
 
     /**
-     * Constructor for TrueTest.
-     * 
-     * @param arg0
-     */
-    public TrueTest(String arg0) {
-        super(arg0);
-    }
-
-    public static void main(String[] args) {
-        junit.swingui.TestRunner.run(TrueTest.class);
-    }
-
-    /**
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    /**
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
-    /**
      * Test for Test 'true'
      */
     public void testIfTrue() {

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/parser/address/SieveAddressBuilderTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/parser/address/SieveAddressBuilderTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/parser/address/SieveAddressBuilderTest.java
(original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/parser/address/SieveAddressBuilderTest.java
Tue Sep  2 03:34:49 2008
@@ -49,10 +49,6 @@
         builder = new SieveAddressBuilder();
     }
 
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     public void testNotAddress() throws Exception {
         try {
             builder

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterActionsTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterActionsTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterActionsTest.java
(original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterActionsTest.java
Tue Sep  2 03:34:49 2008
@@ -40,10 +40,6 @@
         anotherAction = new MockAction();
     }
 
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     public void testAddAction() {
         adapter.addAction(action);
         assertEquals("Running total updated", 1, adapter.getActions().size());

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterHeadersTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterHeadersTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterHeadersTest.java
(original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterHeadersTest.java
Tue Sep  2 03:34:49 2008
@@ -71,10 +71,6 @@
         adapter.setMail(message);
     }
 
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     public void testGetHeader() throws Exception {
         List headers = adapter.getHeader(FROM);
         assertNotNull(headers);

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterMailTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterMailTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterMailTest.java
(original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterMailTest.java
Tue Sep  2 03:34:49 2008
@@ -38,10 +38,6 @@
         anotherAction = new MockAction();
     }
 
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     public void testSetMail() throws Exception {
         adapter.addAction(action);
         adapter.addAction(anotherAction);

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterNoMessageSetTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterNoMessageSetTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterNoMessageSetTest.java
(original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckMailAdapterNoMessageSetTest.java
Tue Sep  2 03:34:49 2008
@@ -32,10 +32,6 @@
         adapter = new ScriptCheckMailAdapter();
     }
 
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     public void testGetHeader() throws Exception {
         List headers = adapter.getHeader("From");
         assertNotNull(headers);

Modified: james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckerTestActionsTest.java
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckerTestActionsTest.java?rev=691188&r1=691187&r2=691188&view=diff
==============================================================================
--- james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckerTestActionsTest.java
(original)
+++ james/jsieve/trunk/src/test/java/org/apache/jsieve/util/check/ScriptCheckerTestActionsTest.java
Tue Sep  2 03:34:49 2008
@@ -57,10 +57,6 @@
         result = new ScriptChecker.Results(Arrays.asList(ACTIONS));
     }
 
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     public void testFileInto() throws Exception {
         assertTrue("Check for file into action with right destination", result
                 .isActionFileInto(DESTINATION_ONE, 0));



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


Mime
View raw message