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 57873 - testNoIconInMenu: expected not same
Summary: testNoIconInMenu: expected not same
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Simonek
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2005-04-14 09:38 UTC by Jaroslav Tulach
Modified: 2008-12-22 21:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2005-04-14 09:38:34 UTC
testNoIconInMenu: 
 
      junit.framework.AssertionFailedError: expected not same 
        at junit.framework.Assert.fail(Assert.java:47) 
        at junit.framework.Assert.failSame(Assert.java:271) 
        at junit.framework.Assert.assertNotSame(Assert.java:257) 
        at junit.framework.Assert.assertNotSame(Assert.java:264) 
        at org.openide.awt.ActionsTest.testNoIconInMenu(ActionsTest.java:180) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
        at java.lang.reflect.Method.invoke(Method.java:585) 
        at junit.framework.TestCase.runTest(TestCase.java:154) 
        at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:136) 
        at junit.framework.TestResult$1.protect(TestResult.java:106) 
        at junit.framework.TestResult.runProtected(TestResult.java:124) 
        at junit.framework.TestResult.run(TestResult.java:109) 
        at junit.framework.TestCase.run(TestCase.java:118) 
        at org.netbeans.junit.NbTestCase.run(NbTestCase.java:123) 
        at junit.framework.TestSuite.runTest(TestSuite.java:208) 
        at junit.framework.TestSuite.run(TestSuite.java:203) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127) 
        at 
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41)
Comment 1 David Simonek 2005-04-15 12:53:05 UTC
Yes, behaviour of "noIconInMenu" changed a bit in Actions.connect. Now icon is
not transferred from action to menu item at all if action has "noIconInMenu"
specified. Will update the test accordingly.
Comment 2 David Simonek 2005-04-15 13:16:51 UTC
fixed in main trunk:

/cvs/openide/test/unit/src/org/openide/awt/ActionsTest.java,v  <--  ActionsTest.java
new revision: 1.10; previous revision: 1.9
Comment 3 David Simonek 2005-04-15 13:22:59 UTC
Merged also in release41:

/cvs/openide/test/unit/src/org/openide/awt/ActionsTest.java,v  <--  ActionsTest.java
new revision: 1.9.26.1; previous revision: 1.9
Comment 4 David Simonek 2005-04-19 15:32:11 UTC
Reopening, still failing but probably because of bug in test4u infrastructure.
Comment 5 David Simonek 2005-04-19 15:36:56 UTC
Eman, please look at following problem:
I fixed test on Friday Apr 15 both in main trunk and release41 branch.

Still, test4u infrastructure is claiming that test is failing. I checked details
on url
http://ffjqa.czech/automatedtests/xtest/netbeans_4.1/200504142205/qa-unit/qa-w2k-s3_2/testrun_050418-081751/testbag_5/htmlresults/suites/TEST-org.openide.awt.ActionsTest.html#testNoIconInMenu
and it seems that test are run on old sources from release41 branch...
Comment 6 ehucka 2005-04-19 16:09:10 UTC
The link points to testrun of build 20050414 - it seems there was not fix yet. 
Comment 7 ehucka 2005-04-19 16:19:55 UTC
it seems there was a problem in evaluation infrastructure
Comment 8 ehucka 2005-04-19 16:21:17 UTC
i forgot to reasign it
Comment 9 ehucka 2005-04-19 16:22:21 UTC
resolved
Comment 10 Marian Mirilovic 2005-12-12 12:58:18 UTC
closing