Opened 7 years ago

Last modified 5 years ago

#13099 new defect

Broken unit test:

Reported by: michael2402 Owned by: team
Priority: normal Milestone:
Component: Unit tests Version:
Keywords: junit Cc:


An assertion fails during this unit test, the assertion failure is not detected:

    [junit] Testsuite:
    [junit] Exception in thread "AWT-EventQueue-0" Assertion failed: 
    [junit] assert event.getAddedChangesets().size() == 1
    [junit]        |     |                    |      |
    [junit]        |     []                   0      false
    [junit] 	at org.codehaus.groovy.runtime.InvokerHelper.assertFailed(
    [junit] 	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(
    [junit] 	at$2.changesetCacheUpdated(ChangesetCacheTest.groovy:108)
    [junit] 	at$
    [junit] 	at java.awt.event.InvocationEvent.dispatch(
    [junit] 	at java.awt.EventQueue.dispatchEventImpl(
    [junit] 	at java.awt.EventQueue.access$500(
    [junit] 	at java.awt.EventQueue$
    [junit] 	at java.awt.EventQueue$
    [junit] 	at Method)
    [junit] 	at$1.doIntersectionPrivilege(
    [junit] 	at java.awt.EventQueue.dispatchEvent(
    [junit] 	at java.awt.EventDispatchThread.pumpOneEventForFilters(
    [junit] 	at java.awt.EventDispatchThread.pumpEventsForFilter(
    [junit] 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
    [junit] 	at java.awt.EventDispatchThread.pumpEvents(
    [junit] 	at java.awt.EventDispatchThread.pumpEvents(
    [junit] 	at
    [junit] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.107 sec

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by Don-vip

Keywords: junit groovy added
Milestone: 16.07

well it seems broken since 2009... This test should be rewritten to move assertions out of listeners code

comment:2 Changed 5 years ago by Don-vip

Keywords: groovy removed

The test has been converted to Java (#16498) but the assertions still must be moved out from the listeners.

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to michael2402
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.