Added unit tests

This commit is contained in:
Anuken
2018-10-03 20:58:35 -04:00
parent 34715b1e06
commit c82fd9ead5
11 changed files with 233 additions and 88 deletions

View File

@@ -1,7 +1,6 @@
package io.anuke.mindustry.server;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.ApplicationLogger;
import com.badlogic.gdx.Files.FileType;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Preferences;
@@ -13,6 +12,7 @@ import io.anuke.kryonet.KryoClient;
import io.anuke.kryonet.KryoServer;
import io.anuke.mindustry.net.Net;
import io.anuke.ucore.io.BinaryPreferences;
import io.anuke.ucore.util.EmptyLogger;
import io.anuke.ucore.util.OS;
import java.io.File;
@@ -24,31 +24,7 @@ public class ServerLauncher extends HeadlessApplication{
super(listener, config);
//don't do anything at all for GDX logging: don't want controller info and such
Gdx.app.setApplicationLogger(new ApplicationLogger(){
@Override
public void log(String tag, String message){
}
@Override
public void log(String tag, String message, Throwable exception){
}
@Override
public void error(String tag, String message){
}
@Override
public void error(String tag, String message, Throwable exception){
}
@Override
public void debug(String tag, String message){
}
@Override
public void debug(String tag, String message, Throwable exception){
}
});
Gdx.app.setApplicationLogger(new EmptyLogger());
}
public static void main(String[] args){