summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/funcutils/TestUtils.java
diff options
context:
space:
mode:
authorBenjamin J. Culkin <bjculkin@mix.wvu.edu>2021-07-12 15:53:22 -0300
committerBenjamin J. Culkin <bjculkin@mix.wvu.edu>2021-07-12 15:53:22 -0300
commita24c1042499f76ff2d442ae133ef165011a7af4c (patch)
tree1a0bdff895b7dc2bd9e8006fe3b83805c7e56f4f /base/src/main/java/bjc/utils/funcutils/TestUtils.java
parente55cb9852a106cff26517d7d1e85bc4b149884f3 (diff)
Formatting tweaks
Diffstat (limited to 'base/src/main/java/bjc/utils/funcutils/TestUtils.java')
-rw-r--r--base/src/main/java/bjc/utils/funcutils/TestUtils.java45
1 files changed, 17 insertions, 28 deletions
diff --git a/base/src/main/java/bjc/utils/funcutils/TestUtils.java b/base/src/main/java/bjc/utils/funcutils/TestUtils.java
index c7aeec1..681a8e6 100644
--- a/base/src/main/java/bjc/utils/funcutils/TestUtils.java
+++ b/base/src/main/java/bjc/utils/funcutils/TestUtils.java
@@ -5,36 +5,28 @@ import static org.junit.Assert.assertEquals;
import java.util.Iterator;
import java.util.List;
-/**
- * Utilities for testing.
+/** Utilities for testing.
*
- * @author bjculkin
- *
- */
+ * @author bjculkin */
public class TestUtils {
- /**
- * Assert an iterator provides a particular sequence of values.
+ /** Assert an iterator provides a particular sequence of values.
+ *
+ * @param <T> The type of value.
*
- * @param src
- * The iterator to pull values from.
- * @param vals
- * The values to expect from the iterator.
- */
+ * @param src The iterator to pull values from.
+ * @param vals The values to expect from the iterator. */
@SafeVarargs
public static <T> void assertIteratorEquals(Iterator<T> src, T... vals) {
for (T val : vals) assertEquals(val, src.next());
}
- /**
- * Assert an iterator provides a particular sequence of values.
+ /** Assert an iterator provides a particular sequence of values.
+ *
+ * @param <T> The type of value.
*
- * @param src
- * The iterator to pull values from.
- * @param hasMore
- * The expected value of hasNext for the iterator.
- * @param vals
- * The values to expect from the iterator.
- */
+ * @param src The iterator to pull values from.
+ * @param hasMore The expected value of hasNext for the iterator.
+ * @param vals The values to expect from the iterator. */
@SafeVarargs
public static <T> void assertIteratorEquals(boolean hasMore, Iterator<T> src,
T... vals) {
@@ -50,15 +42,12 @@ public class TestUtils {
assertEquals(hasMore, src.hasNext());
}
- /**
- * Assert that a list has a given set of contents.
+ /** Assert that a list has a given set of contents.
*
- * @param src
- * The list of actual elements.
+ * @param <T> The type of value in the list.
*
- * @param exps
- * The list of expected elements.
- */
+ * @param src The list of actual elements.
+ * @param exps The list of expected elements. */
@SafeVarargs
public static <T> void assertListEquals(List<T> src, T... exps) {
assertEquals(exps.length, src.size());