java - Running JUnit on Eclipse -


i trying run below code in eclipse.

it's giving me error "editor not contain main type" can see public static void main(string args[]).

anyone know how run or why not recognize main method?

package org.axiondb.functional;  import junit.framework.test; import junit.framework.testcase; import junit.framework.testsuite;  /**  * @version $revision: 1.26 $ $date: 2005/05/03 18:02:23 $  * @author rodney waldhoff  * @author chuck burdick  */ public class testall extends testcase {      public testall(string testname) {         super(testname);     }      public static void main(string args[]) {         string[] testcasename = { testall.class.getname() };         junit.textui.testrunner.main(testcasename);     }      public static test suite() {         testsuite suite = new testsuite();         suite.addtest(testdatatypes.suite());         suite.addtest(testddl.suite());         suite.addtest(testdql.suite());         suite.addtest(testdqlmisc.suite());         suite.addtest(testdqldisk.suite());         suite.addtest(testdqlwitharrayindex.suite());         suite.addtest(testdqldiskwitharrayindex.suite());         suite.addtest(testdqlwithbtreeindex.suite());         suite.addtest(testdqldiskwithbtreeindex.suite());         suite.addtest(testdml.suite());         suite.addtest(testdmlmisc.suite());         suite.addtest(testdmldisk.suite());         suite.addtest(testdmlwitharrayindex.suite());         suite.addtest(testdmldiskwitharrayindex.suite());         suite.addtest(testdmlwithbtreeindex.suite());         suite.addtest(testdmldiskwithbtreeindex.suite());         suite.addtest(testmemoryclob.suite());         suite.addtest(testdiskclob.suite());         suite.addtest(testmemoryblob.suite());         suite.addtest(testdiskblob.suite());         suite.addtest(testthreadedselect.suite());         suite.addtest(testindexedjoin.suite());         suite.addtest(testbugs.suite());         suite.addtest(testaxionbtreedelete.suite());                 suite.addtest(testspecials.suite());         suite.addtest(testfunctions.suite());         suite.addtest(testthreadeddml.suite());         suite.addtest(testtransactions.suite());         suite.addtest(testtransactionsdisk.suite());         suite.addtest(testconstraints.suite());         suite.addtest(testbooleanliterals.suite());         suite.addtest(testtransactionallobs.suite());         suite.addtest(testtransactionallobsdisk.suite());         suite.addtest(testmetadata.suite());         suite.addtest(testmetadatadisk.suite());         suite.addtest(testdatabaselock.suite());         suite.addtest(testindexspecials.suite());         suite.addtest(testforelmar.suite());         suite.addtest(testpreparestatement.suite());         suite.addtest(testgroupbyandorderby.suite());          suite.addtest(testbinarystream.suite());         return suite;     } } 

try reopening file, run test. otherwise, restart eclipse. please let me know if solves problem! or else give me more details , i'll try , help.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -