mirror of
https://github.com/LucasVbr/mini-chat.git
synced 2026-05-13 17:21:54 +00:00
FEAT: Multiclient + Crypté + Pseudo
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user