X-Git-Url: http://git.rot13.org/?p=zxing.git;a=blobdiff_plain;f=core%2Ftest%2Fsrc%2Fcom%2Fgoogle%2Fzxing%2Fqrcode%2Fdecoder%2FDecodedBitStreamParserTestCase.java;fp=core%2Ftest%2Fsrc%2Fcom%2Fgoogle%2Fzxing%2Fqrcode%2Fdecoder%2FDecodedBitStreamParserTestCase.java;h=1bcb2db4cdc5646483c2adf77ad8e3cb5e26400b;hp=eabb134c358f6b8526435d0d359383db526ca497;hb=e5d03a79a458340b69a57914a352f0a8841cdf69;hpb=a932cce57fabafd18a5db770f2c87afbd72e31b9 diff --git a/core/test/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParserTestCase.java b/core/test/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParserTestCase.java index eabb134c..1bcb2db4 100644 --- a/core/test/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParserTestCase.java +++ b/core/test/src/com/google/zxing/qrcode/decoder/DecodedBitStreamParserTestCase.java @@ -17,15 +17,17 @@ package com.google.zxing.qrcode.decoder; import com.google.zxing.common.BitSourceBuilder; -import junit.framework.TestCase; +import org.junit.Assert; +import org.junit.Test; /** * Tests {@link com.google.zxing.qrcode.decoder.DecodedBitStreamParser}. * * @author Sean Owen */ -public final class DecodedBitStreamParserTestCase extends TestCase { +public final class DecodedBitStreamParserTestCase extends Assert { + @Test public void testSimpleByteMode() throws Exception { BitSourceBuilder builder = new BitSourceBuilder(); builder.write(0x04, 4); // Byte mode @@ -38,6 +40,7 @@ public final class DecodedBitStreamParserTestCase extends TestCase { assertEquals("\u00f1\u00f2\u00f3", result); } + @Test public void testSimpleSJIS() throws Exception { BitSourceBuilder builder = new BitSourceBuilder(); builder.write(0x04, 4); // Byte mode @@ -51,6 +54,7 @@ public final class DecodedBitStreamParserTestCase extends TestCase { assertEquals("\uff61\uff62\uff63\uff90", result); } + @Test public void testECI() throws Exception { BitSourceBuilder builder = new BitSourceBuilder(); builder.write(0x07, 4); // ECI mode