Opened 2 years ago

Last modified 2 years ago

#16637 new defect

Rework unit tests to not depend on external website

Reported by: Don-vip Owned by: team
Priority: normal Milestone:
Component: Unit tests Version:
Keywords: Cc: ris


We still have some unit tests making real network connections, failing when the website is slow or unreachable:

  1. org.openstreetmap.josm.gui.oauth.OsmOAuthAuthorizationClientTest.testCookieHandling
  2. org.openstreetmap.josm.gui.preferences.server.ApiUrlTestTaskTest.testNominalUrl
  3. org.openstreetmap.josm.gui.preferences.server.ApiUrlTestTaskTest.testAlertInvalidServerResult

Attachments (0)

Change History (2)

comment:1 Changed 2 years ago by ris

There also those that unintentionally make network requests, e.g. fetching the "start page" from the wiki.

comment:2 Changed 2 years ago by Don-vip

In 14191/josm:

see #16637 - javadoc

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 Don-vip
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.