projects
/
zxing.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
At last update to JUnit 4.x
[zxing.git]
/
core
/
test
/
src
/
com
/
google
/
zxing
/
common
/
BitArrayTestCase.java
diff --git
a/core/test/src/com/google/zxing/common/BitArrayTestCase.java
b/core/test/src/com/google/zxing/common/BitArrayTestCase.java
index
a47ae47
..
bf1c5ce
100644
(file)
--- 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.
*
* 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;
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++) {
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);
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++) {
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);
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]);
}
assertEquals(Integer.MIN_VALUE, ints[1]);
}
+ @Test
public void testIsRange() {
BitArray array = new BitArray(64);
assertTrue(array.isRange(0, 64, false));
public void testIsRange() {
BitArray array = new BitArray(64);
assertTrue(array.isRange(0, 64, false));