Permalink
Browse files

Changed test case to Junit 4

  • Loading branch information...
1 parent f66c20d commit dc4d7b63a61081ab4f51d74cd340526f1f628f1f @abh1nay abh1nay committed Oct 1, 2012
@@ -4,20 +4,19 @@
import java.util.HashMap;
import java.util.Map;
-import junit.framework.TestCase;
-
import org.apache.avro.Schema;
import org.apache.avro.generic.GenericData;
import org.apache.avro.generic.GenericData.Record;
import org.apache.avro.util.Utf8;
+import org.junit.Test;
/**
* A test that the avro serialization remains compatible with older serialized
* data
*
*
*/
-public class AvroBackwardsCompatibilityTest extends TestCase {
+public class AvroBackwardsCompatibilityTest {
private static byte[] writeVersion0(Schema s0) {
@@ -35,6 +34,7 @@ private static Object readVersion0(Map<Integer, String> versions, byte[] version
}
+ @Test
public static void testAvroSchemaEvolution() throws IOException {
String versionZero = "{\"type\": \"record\", \"name\": \"myrec\",\"fields\": [{ \"name\": \"original\", \"type\": \"string\" }]}";

0 comments on commit dc4d7b6

Please sign in to comment.