FEAT: Multiclient + Crypté + Pseudo

This commit is contained in:
Lucàs
2022-12-05 13:03:14 +01:00
parent 6466284b1b
commit 75e873d44f
14 changed files with 525 additions and 196 deletions
+25
View File
@@ -0,0 +1,25 @@
package utils;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class ResolutionDeNomTest {
@Test
void getIPAddress() {
final int EXPECTED = 1;
final int ACTUAL = 0;
final String[][] FIXTURE = {
{"localhost", "127.0.0.1"},
{"www.univ-jfc.fr", "194.57.185.14"},
};
for (String[] test : FIXTURE) {
assertEquals(test[EXPECTED], ResolutionDeNom.getIPAddress(test[ACTUAL]));
System.out.printf("%s -> %s : OK\n", test[ACTUAL], test[EXPECTED]);
}
}
}