Modify ↓
Opened 7 years ago
Closed 7 years ago
#12354 closed enhancement (fixed)
[Patch] OsmPrimitiveKeyHandlingTest clean up
Reported by: | michael2402 | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 16.02 |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
Cleaned up that test a bit and added some more tests (like also testing node.getKeys())
- assertSame should not be used for primitives. In fact, it only works because the (normal) JVM caches Integer objects but assertSame(1000,1000) returns false.
- assertEquals expects the first parameter to be the expected value.
Attachments (1)
Change History (3)
Changed 7 years ago by
Attachment: | patch-osm-primitive-key-test.patch added |
---|
comment:1 Changed 7 years ago by
Keywords: | jquery removed |
---|---|
Milestone: | → 16.02 |
comment:2 Changed 7 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
In 9459/josm: