package com.k13n.lt_codes;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
 * Unit test for simple App.
 */
public class AppTest
    extends TestCase
{
    /**
     * Create the test case
     *
     * @param testName name of the test case
     */
    public AppTest( String testName )
    {
        super( testName );
    }

    /**
     * @return the suite of tests being tested
     */
    public static Test suite()
    {
        return new TestSuite( AppTest.class );
    }

    /**
     * Rigourous Test :-)
     */
    public void testApp()
    {
        assertTrue( true );
    }
}

@@ -118,16 +118,63 @@
 Suite;%0A%0A
+import java.io.*;%0Aimport com.k13n.lt_codes.*;%0A%0A
 /**%0A * U
@@ -666,21 +666,756 @@
 sert
-True( true );
+WorksWithPerfectChannel();%0A        assertTrue( true );%0A    %7D%0A%0A    private void assertWorksWithPerfectChannel() %7B%0A      File testFile = new File(%22text.txt%22);%0A      byte%5B%5D data = new byte%5B(int) file.length()%5D;%0A      DataInputStream s = new DataInputStream(new FileInputStream(testFile));%0A      s.readFully(data);%0A      s.close();%0A%0A      Encoder enc = new Encoder(data, 1000, 0.1);%0A      Decoder dec = new Decoder(enc.getSeed(), enc.getNPackets());%0A%0A      enc.encode(new Encoder.Callback()%7B%0A        public boolean call(Encoder encoder, int%5B%5D neighbours, byte data%5B%5D) %7B%0A          return !decoder.receive(data, neighbours);%0A        %7D%0A      %7D);%0A%0A      dec.write(new FileOutputStream(%22test.txt.out%22));%0A%0A      //assertFilesEqual(%22text.txt%22, %22text.txt.out%22)
 %0A   

Add a simple test case, does probably not compile.