Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
vadere
vadere
Commits
0195ad51
Commit
0195ad51
authored
Jul 03, 2019
by
Benedikt Zoennchen
Browse files
replace external scenario file by test sceanrio file.
parent
4734dfba
Pipeline
#129058
failed with stages
in 58 minutes and 40 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
VadereSimulator/tests/org/vadere/simulator/entrypoints/cmd/commands/SetLogNameCommandTest.java
View file @
0195ad51
...
...
@@ -4,6 +4,7 @@ import org.junit.Test;
import
org.vadere.simulator.entrypoints.cmd.VadereConsole
;
import
java.io.IOException
;
import
java.net.URISyntaxException
;
import
java.nio.file.Files
;
import
java.nio.file.Paths
;
...
...
@@ -13,11 +14,12 @@ public class SetLogNameCommandTest {
@Test
public
void
testSetLogNameCommand
(){
String
path
=
"test.log"
;
VadereConsole
.
main
(
new
String
[]
{
"--logname"
,
path
,
"scenario-run"
,
"-f"
,
"../VadereModelTests/TestOSM/scenarios/basic_2_density_discrete_ca.scenario"
});
try
{
String
path
=
Paths
.
get
(
getClass
().
getResource
(
"/org/vadere/simulator/entrypoints/test.scenario"
).
toURI
()).
toString
();
System
.
out
.
println
(
path
);
VadereConsole
.
main
(
new
String
[]
{
"--logname"
,
path
,
"scenario-run"
,
"-f"
,
path
});
assertTrue
(
Files
.
lines
(
Paths
.
get
(
path
)).
count
()
>
0
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
|
URISyntaxException
e
)
{
fail
(
e
.
getMessage
());
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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