Opened 8 years ago

Last modified 6 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 by Don-vip, 8 years ago

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 by Don-vip, 6 years ago

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. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to michael2402.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.