X-Git-Url: http://git.rot13.org/?p=zxing.git;a=blobdiff_plain;f=core%2Ftest%2Fsrc%2Fcom%2Fgoogle%2Fzxing%2Fcommon%2FBitArrayTestCase.java;h=bf1c5ce7c0d29c876fe1b7cf5603ddacb7f8ebad;hp=233cb0ec3414d39f064292ae173b0e6d6460c3b1;hb=e5d03a79a458340b69a57914a352f0a8841cdf69;hpb=a932cce57fabafd18a5db770f2c87afbd72e31b9 diff --git a/core/test/src/com/google/zxing/common/BitArrayTestCase.java b/core/test/src/com/google/zxing/common/BitArrayTestCase.java index 233cb0ec..bf1c5ce7 100644 --- a/core/test/src/com/google/zxing/common/BitArrayTestCase.java +++ b/core/test/src/com/google/zxing/common/BitArrayTestCase.java @@ -16,13 +16,15 @@ package com.google.zxing.common; -import junit.framework.TestCase; +import org.junit.Assert; +import org.junit.Test; /** * @author Sean Owen */ -public final class BitArrayTestCase extends TestCase { +public final class BitArrayTestCase extends Assert { + @Test public void testGetSet() { BitArray array = new BitArray(33); for (int i = 0; i < 33; i++) { @@ -32,6 +34,7 @@ public final class BitArrayTestCase extends TestCase { } } + @Test public void testSetBulk() { BitArray array = new BitArray(64); array.setBulk(32, 0xFFFF0000); @@ -43,6 +46,7 @@ public final class BitArrayTestCase extends TestCase { } } + @Test public void testClear() { BitArray array = new BitArray(32); for (int i = 0; i < 32; i++) { @@ -54,6 +58,7 @@ public final class BitArrayTestCase extends TestCase { } } + @Test public void testGetArray() { BitArray array = new BitArray(64); array.set(0); @@ -63,6 +68,7 @@ public final class BitArrayTestCase extends TestCase { assertEquals(Integer.MIN_VALUE, ints[1]); } + @Test public void testIsRange() { BitArray array = new BitArray(64); assertTrue(array.isRange(0, 64, false));