Commit 79268262 authored by hm-schuhba1's avatar hm-schuhba1

add missing mocks

parent e632da09
Pipeline #65328 failed with stages
in 44 minutes and 31 seconds
......@@ -44,6 +44,7 @@ public class PedestrianOverlapProcessorTestEnv extends ProcessorTestEnv<Timestep
b.add(3, new VPoint(1.5, 1.0));
b.add(4, new VPoint(1.0, 1.5));
Mockito.when(state.getTopography().getElements(Pedestrian.class)).thenReturn(b.getList());
Mockito.when(state.getTopography().getAttributesPedestrian().getRadius()).thenReturn(0.195);
int step = state.getStep();
addToExpectedOutput(new TimestepPedestrianIdKey(step, 1), 0);
......@@ -63,6 +64,7 @@ public class PedestrianOverlapProcessorTestEnv extends ProcessorTestEnv<Timestep
b.add(4, new VPoint(1.0, 1.5));
b.add(5, new VPoint(0.8, 0.8));
Mockito.when(state.getTopography().getElements(Pedestrian.class)).thenReturn(b.getList());
Mockito.when(state.getTopography().getAttributesPedestrian().getRadius()).thenReturn(0.195);
int step = state.getStep();
addToExpectedOutput(new TimestepPedestrianIdKey(step, 1), 2);
......@@ -81,6 +83,7 @@ public class PedestrianOverlapProcessorTestEnv extends ProcessorTestEnv<Timestep
b.add(3, new VPoint(1.0, 1.0));
b.add(4, new VPoint(1.0, 1.0));
Mockito.when(state.getTopography().getElements(Pedestrian.class)).thenReturn(b.getList());
Mockito.when(state.getTopography().getAttributesPedestrian().getRadius()).thenReturn(0.195);
int step = state.getStep();
addToExpectedOutput(new TimestepPedestrianIdKey(step, 1), 3);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment