Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#21305 closed defect (fixed)

[PATCH] Fix typo in MultiFetchServerObjectReaderTest.java

Reported by: taylor.smock Owned by: team
Priority: minor Milestone: 21.10
Component: Unit tests Version: latest
Keywords: test Cc: Gubaer

Description (last modified by taylor.smock)

trunk/test/functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java@18202:335-335#L335 looks like it should be assertEquals(n1.get("name"), n2.get("name")) (note the first n goes from 2 -> 1).

Gubaer touched it last in 2009, and I doubt anyone would remember something like that 12 years later. That being said, I cannot think of a good reason for it.

I found this while working on #21139, but I haven't been able to successfully run the functional tests on JOSM master (ant -Djava.awt.headless=true -Dosm.username='user@example.com' -Dosm.password='some-random-password' test-clean test '-Ddefault-junit-includes=**/josm/io/MultiFetchServerObjectReader*'). I've got some changes for #21139 (not yet committed) that have allowed me to run the tests, but most of the MultiFetchServerObjectReader tests are not passing yet there.

The tests are now passing.

Attachments (2)

21305.patch (1.0 KB ) - added by taylor.smock 3 years ago.
Fix variable typo
21305.2.patch (2.0 KB ) - added by taylor.smock 3 years ago.
Add additional assertEquals(primitive.get("key"), primitive.get("key")) typos

Download all attachments as: .zip

Change History (6)

by taylor.smock, 3 years ago

Attachment: 21305.patch added

Fix variable typo

comment:1 by taylor.smock, 3 years ago

Description: modified (diff)

by taylor.smock, 3 years ago

Attachment: 21305.2.patch added

Add additional assertEquals(primitive.get("key"), primitive.get("key")) typos

comment:2 by Don-vip, 3 years ago

Component: CoreUnit tests
Milestone: 21.09
Priority: normalminor

comment:3 by Don-vip, 3 years ago

Resolution: fixed
Status: newclosed

In 18203/josm:

fix #21305 - Fix typo in MultiFetchServerObjectReaderTest (patch by taylor.smock)

comment:4 by Don-vip, 3 years ago

Milestone: 21.0921.10

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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