Skip to content

Commit ddb4c08

Browse files
committed
In the summer, the REST project is Project 4.
1 parent 13b4885 commit ddb4c08

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

projects-parent/originals-parent/airline-web/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
<addClasspath>true</addClasspath>
109109
<classpathLayoutType>repository</classpathLayoutType>
110110
<classpathPrefix>file:///${localRepositoryWithEscapedSpaces}</classpathPrefix>
111-
<mainClass>edu.pdx.cs.joy.airlineweb.Project5</mainClass>
111+
<mainClass>edu.pdx.cs.joy.airlineweb.Project4</mainClass>
112112
</manifest>
113113
</archive>
114114
</configuration>

projects-parent/originals-parent/airline-web/src/it/java/edu/pdx/cs/joy/airlineweb/Project5IT.java renamed to projects-parent/originals-parent/airline-web/src/it/java/edu/pdx/cs/joy/airlineweb/Project4IT.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
import 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

projects-parent/originals-parent/airline-web/src/main/java/edu/pdx/cs/joy/airlineweb/Project5.java renamed to projects-parent/originals-parent/airline-web/src/main/java/edu/pdx/cs/joy/airlineweb/Project4.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* The main class that parses the command line and communicates with the
1212
* Airline server using REST.
1313
*/
14-
public class Project5 {
14+
public class Project4 {
1515

1616
public static final String MISSING_ARGS = "Missing command line arguments";
1717

@@ -102,7 +102,7 @@ private static void usage( String message )
102102
PrintStream err = System.err;
103103
err.println("** " + message);
104104
err.println();
105-
err.println("usage: java Project5 host port [word] [definition]");
105+
err.println("usage: java Project4 host port [word] [definition]");
106106
err.println(" host Host of web server");
107107
err.println(" port Port of web server");
108108
err.println(" word Word in dictionary");

0 commit comments

Comments
 (0)