Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
vadere
vadere
Commits
79268262
Commit
79268262
authored
Aug 10, 2018
by
Stefan Schuhbaeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add missing mocks
parent
e632da09
Pipeline
#65328
failed with stages
in 44 minutes and 31 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
VadereSimulator/tests/org/vadere/simulator/projects/dataprocessing/processor/PedestrianOverlapProcessorTestEnv.java
...ocessing/processor/PedestrianOverlapProcessorTestEnv.java
+3
-0
No files found.
VadereSimulator/tests/org/vadere/simulator/projects/dataprocessing/processor/PedestrianOverlapProcessorTestEnv.java
View file @
79268262
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment