Removed tests

This commit is contained in:
Jaime Martinez Rincon 2017-01-21 10:33:21 +01:00
parent a8e87aab93
commit f88a7e45fd
3 changed files with 0 additions and 62 deletions

View File

@ -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()));
}
}
}

View File

@ -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;
}
}
}

View File

@ -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));
}
}