egueli / TraCI4J

A high-level Java library to communicate with SUMO (Simulation of Urban MObility) through its TraCI protocol.
GNU General Public License v3.0
41 stars 27 forks source link

API version check in JUnit test is too strict #26

Open egueli opened 8 years ago

egueli commented 8 years ago

The Junit test TraCIServerTest.testGetVersionHighLevel() checks that the API version reported by SUMO is exactly equal to the constant API_VERSION, and fails if the machine that runs the test has a different version of SUMO. testGetVersionHighLevel should only test for a minimum API version that ensures that the basic message exchange still works. Breaking changes in higher level APIs, e.g. properties of TraCI objects, should be detected by JUnit tests.