This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269606 - ClassCastException: org.netbeans.modules.gsf.testrunner.api.Testcase cannot be cast to bv.offa.netbeans.cnd.unittest.api.CndTestCase
Summary: ClassCastException: org.netbeans.modules.gsf.testrunner.api.Testcase cannot b...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: TestNG (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-19 20:15 UTC by Alex2016
Modified: 2018-03-10 12:11 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 223489


Attachments
stacktrace (2.42 KB, text/plain)
2017-01-19 20:15 UTC, Alex2016
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex2016 2017-01-19 20:15:00 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.111-b14, Java(TM) SE Runtime Environment, 1.8.0_111-b14
OS: Windows 7

User Comments:
Alex2016: -------------------
"/usr/bin/make" -f nbproject/Makefile-Debug64bit.mk SUBPROJECTS= .test-conf
make[1]: Entering directory '/cygdrive/d/_JavaSeWork/MT4/MT_TradeSignal'
newtestclass::testPolynom
 : OK
newtestclass::testPolynom2
 : OK
newtestclass::testPolynom3
 : OK
newtestclass::testGetY
 : OK
newtestclass::testDifferentiate
 : OK
OK (5)
make[1]: Leaving directory '/cygdrive/d/_JavaSeWork/MT4/MT_TradeSignal'
------------------------------------------------------
make[1]: Leaving directory '/cygdrive/d/_JavaSeWork/MT4/MT_TradeSignal'
"/usr/bin/make" -f nbproject/Makefile-Debug64bit.mk SUBPROJECTS= .test-conf
make[1]: Entering directory '/cygdrive/d/_JavaSeWork/MT4/MT_TradeSignal'
newtestclass::testPolynom
newtestclass::testPolynom2
newtestclass::testPolynom3
newtestclass::testGetY
newtestclass::testDifferentiate
make[1]: Leaving directory '/cygdrive/d/_JavaSeWork/MT4/MT_TradeSignal'
-----------------------------------------------

GUEST: oop

GUEST: Was running unit tests

GUEST: Cppunit tests can't be inidividually examined on the "Test results" panel anymore

rwhartzell: Attempting to run a basic unit test

GUEST: Tests...

GUEST: oops

GUEST: oops

GUEST: oops

GUEST: Console dump
"/usr/bin/make" -f nbproject/Makefile-Debug64bit.mk SUBPROJECTS= .test-conf
make[1]: Entering directory '/cygdrive/d/_JavaSeWork/MT4/MT_TradeSignal'

1) Failure:
testPolynom(newsimpletest):
error message sample


2) Failure:
testPolynom2(newsimpletest):
error message sample


3) Failure:
testPolynom3(newsimpletest):
error message sample


4) Failure:
testGetY(newsimpletest):
error message sample


5) Failure:
testDifferentiate(newsimpletest):
error message sample

make[1]: Leaving directory '/cygdrive/d/_JavaSeWork/MT4/MT_TradeSignal'

GUEST: Oppps!
I hope you CAN fix it....

GUEST: I run cpp unit tests

GUEST: Just run s++simple tests....

GUEST: Console dump follows...

"/usr/bin/make" -f nbproject/Makefile-Debug64bit.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/cygdrive/d/_JavaSeWork/MT4/MT_TradeSignal'
"/usr/bin/make"  -f nbproject/Makefile-Debug64bit.mk dist/Debug64bit/Cygwin-Windows/libMT_TradeSignal.dll
make[2]: Entering directory '/cygdrive/d/_JavaSeWork/MT4/MT_TradeSignal'
make[2]: 'dist/Debug64bit/Cygwin-Windows/libMT_TradeSignal.dll' is up to date.
make[2]: Leaving directory '/cygdrive/d/_JavaSeWork/MT4/MT_TradeSignal'
make[1]: Leaving directory '/cygdrive/d/_JavaSeWork/MT4/MT_TradeSignal'
"/usr/bin/make" -f nbproject/Makefile-Debug64bit.mk SUBPROJECTS= .build-tests-conf
make[1]: Entering directory '/cygdrive/d/_JavaSeWork/MT4/MT_TradeSignal'
"/usr/bin/make"  -f nbproject/Makefile-Debug64bit.mk dist/Debug64bit/Cygwin-Windows/libMT_TradeSignal.dll
make[2]: Entering directory '/cygdrive/d/_JavaSeWork/MT4/MT_TradeSignal'
make[2]: 'dist/Debug64bit/Cygwin-Windows/libMT_TradeSignal.dll' is up to date.
ma

Alex2016: Very stable  bug

GUEST: simple c++ test kills it... :(

GUEST: I run some c++ simple tests.

GUEST: oops

GUEST: make[2]: 'dist/Debug64bit/Cygwin-Windows/libMT_TradeSignal.dll' is up to date.
make[2]: Leaving directory '/cygdrive/d/_JavaSeWork/MT4/MT_TradeSignal'
make[1]: Leaving directory '/cygdrive/d/_JavaSeWork/MT4/MT_TradeSignal'
"/usr/bin/make" -f nbproject/Makefile-Debug64bit.mk SUBPROJECTS= .test-conf
make[1]: Entering directory '/cygdrive/d/_JavaSeWork/MT4/MT_TradeSignal'
newtestclass1::testPolynom
newtestclass1::testPolynom2
newtestclass1::testPolynom3
newtestclass1::testGetY
newtestclass1::testDifferentiate
newtestclass1.cpp:35:Assertion
Test name: newtestclass1::testPolynom
assertion failed
- Expression: false

newtestclass1.cpp:43:Assertion
Test name: newtestclass1::testPolynom2
assertion failed
- Expression: false

newtestclass1.cpp:51:Assertion
Test name: newtestclass1::testPolynom3
assertion failed
- Expression: false

newtestclass1.cpp:60:Assertion
Test name: newtestclass1::testGetY
assertion failed
- Expression: false

newtestclass1.cpp:69:Assertion
Test name: newtestclass1::test

GUEST: Tests...
This test output  kills Netbeans:

%SUITE_STARTING% GoldenFactorysimpletest
%SUITE_STARTED%
%TEST_STARTED% testisItYIELDUnit (GoldenFactorysimpletest)
%TEST_FINISHED% time=0 testisItYIELDUnit (GoldenFactorysimpletest)
%TEST_STARTED% testisItIOUnit (GoldenFactorysimpletest)
%TEST_FINISHED% time=0 testisItIOUnit (GoldenFactorysimpletest)
%TEST_STARTED% testReadLong (GoldenFactorysimpletest)
%TEST_FINISHED% time=0 testReadLong (GoldenFactorysimpletest)
%TEST_STARTED% testIsItCalculateUnit (GoldenFactorysimpletest)
%TEST_FINISHED% time=0 testIsItCalculateUnit (GoldenFactorysimpletest)
%TEST_STARTED% testCreateCalculateUnit (GoldenFactorysimpletest)
%TEST_FINISHED% time=0 testCreateCalculateUnit (GoldenFactorysimpletest)
%SUITE_FINISHED% time=0




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.gsf.testrunner.api.Testcase cannot be cast to bv.offa.netbeans.cnd.unittest.api.CndTestCase
   at bv.offa.netbeans.cnd.unittest.ui.TestRunnerUINodeFactory.createTestMethodNode(TestRunnerUINodeFactory.java:48)
   at org.netbeans.modules.gsf.testrunner.ui.TestsuiteNodeChildren.createNodeForKey(TestsuiteNodeChildren.java:88)
   at org.netbeans.modules.gsf.testrunner.ui.TestsuiteNodeChildren.createNodeForKey(TestsuiteNodeChildren.java:58)
   at org.openide.nodes.ChildFactory.createNodesForKey(ChildFactory.java:120)
   at org.openide.nodes.AsynchChildren.createNodes(AsynchChildren.java:160)
   at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1679)
Comment 1 Alex2016 2017-01-19 20:15:04 UTC
Created attachment 163435 [details]
stacktrace