Commit e325f80a authored by Alexander's avatar Alexander

Add olympic-sport test

parent 9701f3ac
......@@ -39,11 +39,19 @@ public class ErrorTests extends Assignment2TestBase {
}
/**
* This tests several ioc-code errors
* This tests several sports-venue errors
*/
@Test
@DisplayName("sports-venue")
void sportsVenueErrors() {
testWithIOFile(getDataFolderDirectory() + "error_tests/sports_venue.io");
}
/**
* This tests several ioc-code errors
*/
@Test
@DisplayName("olympic-sport")
void olympicSportsErrors() {
testWithIOFile(getDataFolderDirectory() + "error_tests/olympic_sport.io");
}
}
Automatically created test
> add-admin sebastian;stüker;gbi_god;modus_ponens
OK
> login-admin gbi_god;modus_ponens
OK
> add-olympic-sport
Error, wrong parameters for this command
> add-olympic-sport
Error, wrong parameters for this command
> add-olympic-sport ;;
Error, wrong parameters for this command
> add-olympic-sport ;
Error, wrong parameters for this command
> list-olympic-sports
> add-olympic-sport workout;audimax morning workout
OK
> add-olympic-sport workout;audimax morning workout
Error, the specified sport pair already exists
> list-olympic-sports test
Error, wrong parameters for this command
> list-olympic-sports
Error, wrong parameters for this command
> list-olympic-sports
workout audimax morning workout
\ 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