Getting "junit.framework.AssertionFailedError: Forked Java VM exited abnormally" Exception -


i have java program junit test have written in netbeans ide testing class single thread. when going compile working fine , showing results 100% success, when trying run program getting exception -

testsuite: glb.chatmeter.crawler.yahoolocal.yahoobusinessdatatest tests run: 1, failures: 1, errors: 0, time elapsed: 0.057 sec

testcase: warning(junit.framework.testsuite$1): failed no tests found in glb.chatmeter.crawler.yahoolocal.yahoobusinessdatatest junit.framework.assertionfailederror: no tests found in glb.chatmeter.crawler.yahoolocal.yahoobusinessdatatest

testsuite: glb.chatmeter.crawler.yahoolocal.yahoobusinessdatatest tests run: 1, failures: 0, errors: 1, time elapsed: 0 sec

testcase: glb.chatmeter.crawler.yahoolocal.yahoobusinessdatatest:null: caused error forked java vm exited abnormally. please note time in report not reflect time until vm exit. junit.framework.assertionfailederror: forked java vm exited abnormally. please note time in report not reflect time until vm exit. @ org.netbeans.core.execution.runclassthread.run(runclassthread.java:154)

is netbean problem or thing else? 1 me thanks.

my code this-

public class businessdatatest {      string url = "http://local.com/info-66122628-andy-richards-house-painting-mesa";     integer[] locid = {1354};     string customerdetail ="business name";      public businessdatatest() {     }      @beforeclass     public static void setupclass() throws exception {     }      @afterclass     public static void teardownclass() throws exception {     }      @test     public void testgetfulldataofbusiness() {         system.out.println("getfulldataofbusiness");         businessdata instance = new businessdata();         integer expresult = 4;         integer result = instance.getfulldataofbusiness(url, customerdetail);         system.out.println("result : " + result);         assertequals(expresult, result);     } } 

this looks bug in netbeans - see bug 204729


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -