The Starter Code has 2 folders, client
and ui
. Complete the following steps to move the starter code into your project for this phase.
- Open your chess project directory.
- Create the folder
client/src/main/java/ui
. This is where you will put your client application code. - Copy the
starter-code/5-pregame/ui/EscapeSequences.java
file into your project'sclient/src/main/java/ui
folder. This file defines values that you can use to control the coloration of your console output. - Create the folder
client/src/test/java/client
. This is where you will put your client unit tests. - Mark the
client/src/test/java
directory asTest sources root
by right clicking on the folder and selecting theMark Directory as
option. This enables IntelliJ to run this code as tests. - Copy the
starter-code/5-pregame/client/ServerFacadeTests.java
file into theclient/src/test/java/client
folder. This test class is meant to get you started on your server facade tests. It includes code for starting and stopping your HTTP server so that your tests can make server requests.
This should result in the following additions to your project.
└── client
└── src
├── main
│ └── java
│ └── ui
│ └── EscapeSequences.java
└── test
└── java
└── client
└── ServerFacadeTests.java