I cannot get it to run in text mode. The following is
a sample pgm. When I use the Run or Test option with
text mode set on this class it gets class not found.


C:\jdk1.3.1\bin\javaw.exe -classpath 
c:\jdk1.3.1\jre\lib\rt.jar;c:\jdk1.3.1\jre\lib\ext\junit.jar;C:\Temp\TestJUnit\classes;C:\junit3.7\junit.jar
TestJUnit
Class not found "TestJUnit"
Process terminated with exit code -1

If I change the text to gui mode it runs. In addition,
if I change the guimode to true in main. It runs in
GUI.

import junit.framework.TestCase;

public class TestJUnit extends TestCase {
    public TestJUnit(String name) {
        super(name);
    }
    public void testArrayToString() {
        System.out.println("Entering/Exiting tearDown
method");
    }
    public static void main(String[] args) {
        String[] testCaseName = {TestJUnit.class.getName()};
        boolean guiMode = false;
        if (guiMode) {
            junit.swingui.TestRunner.main(testCaseName);
        } else {
            junit.textui.TestRunner.main(testCaseName);
        }
    }
}


Thanks, Randy

____________________________________________________________________
Get a Sprint PCS Wireless Web Mail account! Sign up via the Wireless
Web Browser on your Sprint PCS Phone, or at www.sprintpcs.com


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to