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=a47ae47ac7525304ba4ee871612f2c8a9fbe8904;hb=e5d03a79a458340b69a57914a352f0a8841cdf69;hpb=513e49c662f3caa0934fbed84b296c9c8e00f819 diff --git a/core/test/src/com/google/zxing/common/BitArrayTestCase.java b/core/test/src/com/google/zxing/common/BitArrayTestCase.java index a47ae47a..bf1c5ce7 100644 --- a/core/test/src/com/google/zxing/common/BitArrayTestCase.java +++ b/core/test/src/com/google/zxing/common/BitArrayTestCase.java @@ -1,5 +1,5 @@ /* - * Copyright 2007 Google Inc. + * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,13 +16,15 @@ package com.google.zxing.common; -import junit.framework.TestCase; +import org.junit.Assert; +import org.junit.Test; /** - * @author srowen@google.com (Sean Owen) + * @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));