You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/07/26 09:54:39 UTC

svn commit: r425657 - in /lenya/trunk/src/impl/test/org/apache/lenya: cms/rc/RCMLTest.java cms/rc/RevisionControllerTest.java net/InetAddressUtilTest.java

Author: andreas
Date: Wed Jul 26 00:54:39 2006
New Revision: 425657

URL: http://svn.apache.org/viewvc?rev=425657&view=rev
Log:
Make tests run again. But this doesn't mean that they work ...

Modified:
    lenya/trunk/src/impl/test/org/apache/lenya/cms/rc/RCMLTest.java
    lenya/trunk/src/impl/test/org/apache/lenya/cms/rc/RevisionControllerTest.java
    lenya/trunk/src/impl/test/org/apache/lenya/net/InetAddressUtilTest.java

Modified: lenya/trunk/src/impl/test/org/apache/lenya/cms/rc/RCMLTest.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/impl/test/org/apache/lenya/cms/rc/RCMLTest.java?rev=425657&r1=425656&r2=425657&view=diff
==============================================================================
--- lenya/trunk/src/impl/test/org/apache/lenya/cms/rc/RCMLTest.java (original)
+++ lenya/trunk/src/impl/test/org/apache/lenya/cms/rc/RCMLTest.java Wed Jul 26 00:54:39 2006
@@ -47,8 +47,13 @@
      * Constructor.
      * @param test The test to execute.
      */
-    public RCMLTest(String test) {
-        super(test);
+    public RCMLTest() {
+        super();
+    }
+    
+    public void testRCML() {
+        String[] args = { "", "", "" };
+        testRCML(args);
     }
 
     public void testRCML(String[] args) {

Modified: lenya/trunk/src/impl/test/org/apache/lenya/cms/rc/RevisionControllerTest.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/impl/test/org/apache/lenya/cms/rc/RevisionControllerTest.java?rev=425657&r1=425656&r2=425657&view=diff
==============================================================================
--- lenya/trunk/src/impl/test/org/apache/lenya/cms/rc/RevisionControllerTest.java (original)
+++ lenya/trunk/src/impl/test/org/apache/lenya/cms/rc/RevisionControllerTest.java Wed Jul 26 00:54:39 2006
@@ -36,11 +36,10 @@
         super(test);
     }
 
-    /**
-     * The main method.
-     * @param args The command-line arguments.
-     */
-    public static void main(String[] args) {
+    public static void testRevisionController() {
+        
+        String[] args = { "", "", "", "" };
+        
         //       TestRunner.run(getSuite());
 
         if (args.length != 4) {

Modified: lenya/trunk/src/impl/test/org/apache/lenya/net/InetAddressUtilTest.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/impl/test/org/apache/lenya/net/InetAddressUtilTest.java?rev=425657&r1=425656&r2=425657&view=diff
==============================================================================
--- lenya/trunk/src/impl/test/org/apache/lenya/net/InetAddressUtilTest.java (original)
+++ lenya/trunk/src/impl/test/org/apache/lenya/net/InetAddressUtilTest.java Wed Jul 26 00:54:39 2006
@@ -17,15 +17,17 @@
 
 import java.net.InetAddress;
 
+import junit.framework.TestCase;
+
 /**
  * Inet address util test
  */
-public class InetAddressUtilTest {
-    /**
-     * @param args
-     *
-     */
-    public static void main(String[] args) {
+public class InetAddressUtilTest extends TestCase {
+    
+    public void testInetAddressUtil() {
+        
+        String[] args = { "195.226.6.64", "255.255.255.0", "195.226.6.70" };
+        
         if (args.length != 3) {
             System.out.println("Usage: InetAddressUtilTest network subnet ip");
             return;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org