|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectunc.cdva.testutils.TestingUtil
public class TestingUtil
Provides utility methods hopefully helpful for testing.
| Method Summary | |
|---|---|
static boolean |
assertUnique(java.lang.Object[] testArray)
Tests to see if all of the elements of an array are all mutually unique, ie: that no two elements have the same value. |
static int |
count(java.lang.String token,
java.lang.String searchedString)
Counts the number of occurances of a token in a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int count(java.lang.String token,
java.lang.String searchedString)
token - The token to be counted.searchedString - The string which may contain some number of
occurrances of the token.
java.lang.RuntimeException - if token parameter (1st param) is equal to the empty string.public static boolean assertUnique(java.lang.Object[] testArray)
testArray - The array who's elements we'll test.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||