1616import static org .junit .jupiter .api .MethodOrderer .MethodName ;
1717
1818/**
19- * An integration test for {@link Project5 } that invokes its main method with
19+ * An integration test for {@link Project4 } that invokes its main method with
2020 * various arguments
2121 */
2222@ TestMethodOrder (MethodName .class )
23- class Project5IT extends InvokeMainTestCase {
23+ class Project4IT extends InvokeMainTestCase {
2424 private static final String HOSTNAME = "localhost" ;
2525 private static final String PORT = System .getProperty ("http.port" , "8080" );
2626
@@ -32,13 +32,13 @@ void test0RemoveAllMappings() throws IOException {
3232
3333 @ Test
3434 void test1NoCommandLineArguments () {
35- MainMethodResult result = invokeMain ( Project5 .class );
36- assertThat (result .getTextWrittenToStandardError (), containsString (Project5 .MISSING_ARGS ));
35+ MainMethodResult result = invokeMain ( Project4 .class );
36+ assertThat (result .getTextWrittenToStandardError (), containsString (Project4 .MISSING_ARGS ));
3737 }
3838
3939 @ Test
4040 void test2EmptyServer () {
41- MainMethodResult result = invokeMain ( Project5 .class , HOSTNAME , PORT );
41+ MainMethodResult result = invokeMain ( Project4 .class , HOSTNAME , PORT );
4242
4343 assertThat (result .getTextWrittenToStandardError (), equalTo ("" ));
4444
@@ -50,7 +50,7 @@ void test2EmptyServer() {
5050 void test3NoDefinitionsThrowsAppointmentBookRestException () {
5151 String word = "WORD" ;
5252 try {
53- invokeMain (Project5 .class , HOSTNAME , PORT , word );
53+ invokeMain (Project4 .class , HOSTNAME , PORT , word );
5454 fail ("Should have thrown a RestException" );
5555
5656 } catch (UncaughtExceptionInMain ex ) {
@@ -64,21 +64,21 @@ void test4AddDefinition() {
6464 String word = "WORD" ;
6565 String definition = "DEFINITION" ;
6666
67- MainMethodResult result = invokeMain ( Project5 .class , HOSTNAME , PORT , word , definition );
67+ MainMethodResult result = invokeMain ( Project4 .class , HOSTNAME , PORT , word , definition );
6868
6969 assertThat (result .getTextWrittenToStandardError (), equalTo ("" ));
7070
7171 String out = result .getTextWrittenToStandardOut ();
7272 assertThat (out , out , containsString (Messages .definedWordAs (word , definition )));
7373
74- result = invokeMain ( Project5 .class , HOSTNAME , PORT , word );
74+ result = invokeMain ( Project4 .class , HOSTNAME , PORT , word );
7575
7676 assertThat (result .getTextWrittenToStandardError (), equalTo ("" ));
7777
7878 out = result .getTextWrittenToStandardOut ();
7979 assertThat (out , out , containsString (PrettyPrinter .formatDictionaryEntry (word , definition )));
8080
81- result = invokeMain ( Project5 .class , HOSTNAME , PORT );
81+ result = invokeMain ( Project4 .class , HOSTNAME , PORT );
8282
8383 assertThat (result .getTextWrittenToStandardError (), equalTo ("" ));
8484
0 commit comments