kit-sdq / artemis4j

REST Client for the Artemis Project
Eclipse Public License 2.0
5 stars 6 forks source link

Add a `TestFactory` for artemis api endpoints to easily know which endpoints have been renamed #127

Open Luro02 opened 3 weeks ago

Luro02 commented 3 weeks ago

Artemis frequently decides to rename/do minor changes to endpoints. The tests do not cover every endpoint, and some use multiple, so it is a bit of work to figure out what broke after an update.

This could be automated by having a basic test that checks if an endpoint still exists. Ideally, we could send a request to an endpoint (without params/requests body) and check if it returns a 404 (not found), but this might not be possible, depending on how artemis behaves.

The endpoints themselves, could be extracted either through reflection or by using spoon to parse the source code for invocations of ArtemisRequest.XY() (this will likely work for most if not all endpoints).