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 39789 - error in testBasicAction
Summary: error in testBasicAction
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2004-02-09 10:26 UTC by pzajac
Modified: 2008-12-22 22:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception staktrace (1.64 KB, text/plain)
2004-02-09 10:27 UTC, pzajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2004-02-09 10:26:47 UTC
Test Case:   testBasicUsage
Test Suite: org.openide.actions.MoveUpActionTest

 Action org.openide.actions.ReorderAction may not
be invoked from the thread main, only the event
queue:
http://www.netbeans.org/download/dev/javadoc/OpenAPIs/apichanges.html#actions-event-thread
Comment 1 pzajac 2004-02-09 10:27:31 UTC
Created attachment 13325 [details]
exception staktrace
Comment 2 pzajac 2004-02-09 10:30:55 UTC
the same problem in:
testPerformActionWithArgs
testNodeActionIsCorrectlyClonned
Comment 3 David Simonek 2004-02-09 15:38:44 UTC
Passing to Milos, should not be hard to fix.
Comment 4 Milos Kleint 2004-02-10 13:13:08 UTC
I think I fixed it by returning true in runInEQ() on the testcase,
however cannot confirm, the tasts pass on my computer both with and
without the modification. Please reopen when it still fails.
Comment 5 pzajac 2004-02-13 14:04:29 UTC
there is still error in
torg.openide.util.actions.CallbackSystemActionTest.estPerformerAction:

  java.lang.AssertionError: Action
org.openide.util.actions.CallbackSystemActionTest$SimpleCallbackAction
may not be invoked from the thread main, only the event queue:
http://www.netbeans.org/download/dev/javadoc/OpenAPIs/apichanges.html#actions-event-thread
	at
org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:107)
	at
org.openide.util.actions.CallbackSystemAction.actionPerformed(CallbackSystemAction.java:178)
Comment 6 Milos Kleint 2004-02-13 14:24:45 UTC
ok, fixed this one the same way
Comment 7 pzajac 2004-02-25 12:08:49 UTC
test passed