public class TestUtil extends Object
Constructor and Description |
---|
TestUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
assertContainsIgnoreCase(String source,
String... contains)
Ensure that the passed in source contains all the Strings passed in the 'contains' parameter AND
that they appear in the order they are passed in.
|
static boolean |
checkContainsIgnoreCase(String source,
String... contains)
Ensure that the passed in source contains all the Strings passed in the 'contains' parameter AND
that they appear in the order they are passed in.
|
static String |
fetchResource(String name) |
public static void assertContainsIgnoreCase(String source, String... contains)
source
- String source string to test, for example, an exception error message being tested.contains
- String comma separated list of Strings that must appear in the source string. Furthermore,
the strings in the contains comma separated list must appear in the source string, in the same order as they
are passed in.public static boolean checkContainsIgnoreCase(String source, String... contains)
source
- String source string to test, for example, an exception error message being tested.contains
- String comma separated list of Strings that must appear in the source string. Furthermore,
the strings in the contains comma separated list must appear in the source string, in the same order as they
are passed in.Copyright © 2024. All rights reserved.