package com.tozny.sdk;


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

import java.io.IOException;

public class ProtocolTest  extends TestCase {

    public ProtocolTest(String testName)
    {
        super( testName );

    }

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

    public void testCompareStrings() throws IOException {
        assertTrue(Protocol.compareStrings("one", "one"));
        assertTrue(Protocol.compareStrings("two", "two"));
        assertFalse(Protocol.compareStrings("one", "two"));
        assertFalse(Protocol.compareStrings("two", "one"));
        assertFalse(Protocol.compareStrings("one", "onetwo"));
        assertFalse(Protocol.compareStrings("two", "onetwo"));
        //TODO: Implement random comparisons
    }
}

@@ -21,69 +21,40 @@
 k;%0A%0A
-%0A
 import 
-junit.framework.Test;%0Aimport junit.framework.TestCase
+static org.junit.Assert.*
 ;%0Aim
@@ -62,33 +62,22 @@
 ort 
+org.
 junit.
-framework.TestSuite
+Test
 ;%0A%0Ai
@@ -134,269 +134,19 @@
 est 
- extends TestCase %7B%0A%0A    public ProtocolTest(String testName)%0A    %7B%0A        super( testName );%0A%0A    %7D%0A%0A    /**%0A     * @return the suite of tests being tested%0A     */%0A    public static Test suite()%0A    %7B%0A        return new TestSuite( ProtocolTest.class );%0A    %7D%0A
+%7B%0A    @Test
 %0A   
@@ -574,16 +574,17 @@
       //
+ 
 TODO: Im

Update ProtocolTest to JUnit 4 API.