Skip to content

Commit

Permalink
Corrected test
Browse files Browse the repository at this point in the history
  • Loading branch information
BLADE7FOLD\Nathan committed Apr 1, 2017
1 parent 9ffdcac commit 971fb14
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class RouletteV2Blade7foldTest {
@TestAuthor(githubId = "Blade7fold")
public void theMethodShouldClearCorrectlyTheStudentsInTheServer() throws IOException {
System.out.println("Clear Data Store");
RouletteV2ClientImpl instance = new RouletteV2ClientImpl();
IRouletteV2Client instance = (IRouletteV2Client) roulettePair2.getClient();
instance.loadStudent("JeSaisPas");
instance.loadStudent("QuelNom");
instance.loadStudent("MettreIci");
Expand All @@ -57,7 +57,7 @@ public void theMethodShouldClearCorrectlyTheStudentsInTheServer() throws IOExcep
@TestAuthor(githubId = "Blade7fold")
public void theServerShouldReturnTheCorrectListOfStudents() throws IOException {
System.out.println("List Students");
RouletteV2ClientImpl instance = new RouletteV2ClientImpl();
IRouletteV2Client instance = (IRouletteV2Client) roulettePair2.getClient();
StudentsList sl = new StudentsList();
List<Student> expResult = sl.getStudents();
List<Student> result = instance.listStudents();
Expand All @@ -82,7 +82,7 @@ public void theServerShouldReturnTheCorrectVersionNumber() throws IOException {
@Test
@TestAuthor(githubId = "Blade7fold")
public void theServerShouldReturnTheCorrectNumberOFStudents() throws IOException {
RouletteV2ClientImpl usingINFO = new RouletteV2ClientImpl();
IRouletteV2Client usingINFO = (IRouletteV2Client) roulettePair2.getClient();
int nbOfStudents = roulettePair2.getClient().getNumberOfStudents();
int result = usingINFO.getNumberOfStudents();
assertEquals(nbOfStudents, result);
Expand Down

0 comments on commit 971fb14

Please sign in to comment.