@@ -0,0 +1,1887 @@
+package ch.heigvd.res.labs.roulette.net.client;%0A%0Aimport ch.heigvd.res.labs.roulette.data.Student;%0Aimport ch.heigvd.res.labs.roulette.net.protocol.RouletteV2Protocol;%0Aimport org.junit.Rule;%0Aimport org.junit.rules.ExpectedException;%0Aimport ch.heigvd.schoolpulse.TestAuthor;%0Aimport org.junit.Test;%0Aimport java.io.IOException;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * This class contains automated tests to validate the client and the server%0A * implementation of the Roulette Protocol (version 1)%0A *%0A * @author Olivier Liechti%0A */%0Apublic class RouletteV2DbnskyIamfonkyTest %7B%0A%0A  @Rule%0A  public ExpectedException exception = ExpectedException.none();%0A%0A  @Rule%0A  public EphemeralClientServerPair roulettePair = new EphemeralClientServerPair(RouletteV2Protocol.VERSION);%0A%0A  @Test%0A  @TestAuthor(githubId = %22dbnsky%22)%0A  public void theServerShouldReturnTheCorrectVersionNumber() throws IOException %7B%0A    assertEquals(RouletteV2Protocol.VERSION, roulettePair.getClient().getProtocolVersion());%0A  %7D%0A%0A  @Test%0A  @TestAuthor(githubId = %22dbnsky%22)%0A  public void theServerShouldHaveNoStudentsAfterClear() throws IOException %7B%0A    IRouletteV2Client client = (IRouletteV2Client) roulettePair.getClient();%0A    client.loadStudent(%22Iamfonky%22);%0A    client.loadStudent(%22Dbnsky%22);%0A    client.clearDataStore();%0A    assertEquals(0, client.getNumberOfStudents());%0A  %7D%0A%0A  @Test%0A  @TestAuthor(githubId = %22dbnsky%22)%0A  public void theServerShouldReturnSpecificStudentList () throws IOException %7B%0A    IRouletteV2Client client = (IRouletteV2Client) roulettePair.getClient();%0A    List%3CStudent%3E studentList = new ArrayList%3C%3E();%0A    studentList.add(new Student(%22Iamfonky%22));%0A    studentList.add(new Student(%22Dbnksy%22));%0A    client.loadStudents(studentList);%0A    List%3CStudent%3E studentsListStore = client.listStudents();%0A    assertEquals(studentList, studentsListStore);%0A  %7D%0A%0A%7D

Nos tests : done