Skip to content

faq 184287237

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

Error using MatsimTestUtils

by Johan W. Joubert on 2018-02-23 05:27:46


I am writing tests in the matsim-example-project and include the following:

@Rule public MatsimTestUtils utils = new MatsimTestUtils();

But when I run the tests I get the following initializationError:

Any clues as to how to solve it will be welcome.


Comments: 1


Re: Error using MatsimTestUtils

by Marcel Rieser on 2018-02-23 22:29:53

To use MatsimTestUtils, you have to include a special matsim-test dependency. Make sure to have the following dependency, and note the "test-jar" type:

<dependency>
   <groupId>org.matsim</groupId>
   <artifactId>matsim</artifactId>
   <version>0.10.0-SNAPSHOT</version>
   <type>test-jar</type>
   <scope>test</scope>
 </dependency>
Clone this wiki locally