@@ -0,0 +1,1448 @@
+%0Apackage pl.mat.umk.zawodyweb.judge.tests;%0A%0Aimport java.io.DataOutputStream;%0Aimport java.io.IOException;%0Aimport java.net.ServerSocket;%0Aimport java.net.Socket;%0Aimport java.util.logging.Level;%0Aimport java.util.logging.Logger;%0Aimport org.junit.Test;%0Aimport pl.umk.mat.zawodyweb.judge.MainJudge;%0A%0A/**%0A *%0A * @author lukash2k%0A */%0Apublic class JudgeBasicTest %7B%0A%0A    int id = 0; //PODAC ID SUBMITA DO SPRAWDZENIA :-)%0A    String configFilePath = %22%22; // podac sciezke do config file -- niekoniecznie%0A%0A    public JudgeBasicTest() %7B%0A    %7D%0A    // TODO add test methods here.%0A    // The methods must be annotated with annotation @Test. For example:%0A    //%0A    @Test%0A    public void basicJudgeTest() throws IOException, InterruptedException, IOException %7B%0A        if (id==0)%0A            return;%0A        ServerSocket ss = new ServerSocket(8888);%0A        new Thread(new Runnable() %7B%0A%0A            @Override%0A            public void run() %7B%0A                try %7B%0A                    String%5B%5D args = %7BconfigFilePath%7D;%0A                    MainJudge.main(args);%0A                %7D catch (Exception ex) %7B%0A                    Logger.getLogger(JudgeTest.class.getName()).log(Level.SEVERE, null, ex);%0A                %7D%0A            %7D%0A        %7D).start();%0A        Socket sock = ss.accept();%0A        DataOutputStream output = new DataOutputStream(sock.getOutputStream());%0A        output.writeInt(id);%0A        Thread.sleep(15000);%0A        sock.close();%0A        ss.close();%0A    %7D%0A%0A%7D

Test do Judge'a taki co byście mogli sobie submity sprawdzać, bo prosili niektórzy, ;P a i do rankingów się przyda