mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-11-23 11:15:30 +01:00
Removed tests
This commit is contained in:
parent
a8e87aab93
commit
f88a7e45fd
@ -1,23 +0,0 @@
|
||||
import me.jaimemartz.lobbybalancer.connection.ProviderType;
|
||||
import org.junit.Test;
|
||||
|
||||
public class Test1 {
|
||||
//@Test
|
||||
public void test1() {
|
||||
for (int i = 0; i <= 500; i++) {
|
||||
int port = (int) Math.floor(Math.random() * (0xFFFF + 1));
|
||||
System.out.println(port);
|
||||
|
||||
if (port < 0 || port > 0xFFFF) {
|
||||
throw new IllegalArgumentException("port out of range:" + port);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test2() {
|
||||
for (ProviderType provider : ProviderType.values()) {
|
||||
System.out.println(String.format("Provider %s: %s", provider.name(), provider.getDescription()));
|
||||
}
|
||||
}
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
import com.google.gson.Gson;
|
||||
import org.junit.Test;
|
||||
|
||||
public class Test2 {
|
||||
@Test
|
||||
public void test() {
|
||||
Gson gson = new Gson();
|
||||
Class1 object = new Class1("test");
|
||||
String json = gson.toJson(object);
|
||||
System.out.println(json);
|
||||
}
|
||||
|
||||
public class Class1 extends Class2 {
|
||||
public Class1(String test) {
|
||||
super(test);
|
||||
}
|
||||
}
|
||||
|
||||
public class Class2 {
|
||||
private final String test;
|
||||
|
||||
public Class2(String test) {
|
||||
this.test = test;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,12 +0,0 @@
|
||||
import org.junit.Test;
|
||||
|
||||
public class Test3 {
|
||||
@Test
|
||||
public void test() {
|
||||
for (int index = 0; index <= 9; index++) {
|
||||
System.out.println(index);
|
||||
}
|
||||
|
||||
System.out.println((int) Math.ceil(11 / (double) 10));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user