Skip to content

Commit

Permalink
Changed test case to Junit 4
Browse files Browse the repository at this point in the history
  • Loading branch information
abh1nay committed Oct 11, 2012
1 parent f66c20d commit dc4d7b6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand All @@ -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\" }]}";
Expand Down

0 comments on commit dc4d7b6

Please sign in to comment.