Skip to content

Commit

Permalink
add an idea for a link log handler test
Browse files Browse the repository at this point in the history
  • Loading branch information
KasiaKoz committed Jan 10, 2024
1 parent 461763d commit b6a66e9
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
package com.arup.cml.kpi.matsim.handlers;

import org.junit.Test;
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.events.PersonEntersVehicleEvent;
import org.matsim.api.core.v01.population.Person;
import org.matsim.vehicles.Vehicle;

import static org.assertj.core.api.Assertions.assertThat;


public class TestLinkLogHandler {
Id<Person> gerry = Id.createPersonId("gerry");
Id<Vehicle> gerryVehicle = Id.createVehicleId("gerry_wheels");

@Test
public void testNothing() {
LinkLogHandler linkLogHandler = new LinkLogHandler();
linkLogHandler.handleEvent(new PersonEntersVehicleEvent(0, gerry, gerryVehicle));
// check correct data was recorded somewhere in linkLogHandler
assertThat(true).isEqualTo(true);
}

}

0 comments on commit b6a66e9

Please sign in to comment.