Commit e6697220 authored by Alexander's avatar Alexander

Add sports-venue error test

parent c7fb6984
......@@ -37,4 +37,13 @@ public class ErrorTests extends Assignment2TestBase {
void iocCodeErrors() {
testWithIOFile(getDataFolderDirectory() + "error_tests/ioc_code.io");
}
/**
* This tests several ioc-code errors
*/
@Test
@DisplayName("sports-venue")
void sportsVenueErrors() {
testWithIOFile(getDataFolderDirectory() + "error_tests/sports_venue.io");
}
}
Automatically created test
> add-admin sebastian;stüker;gbi_god;modus_ponens
OK
> login-admin gbi_god;modus_ponens
OK
> add-sports-venue
Error, wrong parameters for this command
> add-sports-venue
Error, wrong parameters for this command
> add-sports-venue ;;;;;
Error, wrong parameters for this command
> add-sports-venue 001;germany;karlsruher institut für technologie;audimin;2017;1337
Error, unknown country
> add-ioc-code 001;ger;germany;1989
OK
> add-sports-venue 001;germany;karlsruher institut für technologie;audimin;2017;1337
OK
> add-sports-venue 001;germany;karlsruher institut für technologie;audimin;2017;1337
Error, this id already exists
> add-sports-venue 002;germany;karlsruher institut für technologie;bib;2017;-1
Error, negative (installed) number of chairs
> add-sports-venue 000;germany;karlsruher institut für technologie;bib;2017;42
Error, the id is out of bounds
> add-sports-venue 1000;germany;karlsruher institut für technologie;bib;2017;42
Error, the id is out of bounds
\ No newline at end of file
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