public class TestUtil extends Object
Constructor and Description |
---|
TestUtil() |
Modifier and Type | Method and Description |
---|---|
static <K> void |
assertEmptyIterable(Iterable<K> iterable) |
static <E> void |
assertEqualsSymmetrical(E a,
E b) |
static void |
assertErrorCode(int errorCode,
Runnable runnable) |
static void |
assertErrorCode(int errorCode,
String message,
Runnable runnable) |
static void |
assertErrorCode(javax.ws.rs.core.Response.Status status,
Runnable runnable) |
static void |
assertErrorCode(javax.ws.rs.core.Response.Status status,
String message,
Runnable runnable) |
static void |
assertErrorCodeWithRegexp(int errorCode,
String regExp,
Runnable runnable) |
static void |
assertErrorCodeWithRegexp(javax.ws.rs.core.Response.Status status,
String regexp,
Runnable runnable) |
static void |
assertExpectedErrorCollection(Collection<ErrorCollection> errors,
Runnable runnable) |
static <E> void |
assertNotEquals(E a,
E b) |
static <T extends Throwable> |
assertThrows(Class<T> clazz,
String regexp,
Runnable runnable) |
static String |
getLastPathSegment(URI uri) |
static Transition |
getTransitionByName(Iterable<Transition> transitions,
String transitionName) |
static org.joda.time.DateTime |
toDateTime(String isoDateTimeSt) |
static org.joda.time.DateTime |
toDateTime(String isoDateTimeSt,
org.joda.time.DateTimeZone zone) |
static org.joda.time.DateTime |
toDateTimeFromIsoDate(String isoDate) |
static URI |
toUri(String str) |
public static org.joda.time.DateTime toDateTime(String isoDateTimeSt)
public static org.joda.time.DateTime toDateTime(String isoDateTimeSt, org.joda.time.DateTimeZone zone)
public static org.joda.time.DateTime toDateTimeFromIsoDate(String isoDate)
public static void assertErrorCode(int errorCode, Runnable runnable)
public static <T extends Throwable> void assertThrows(Class<T> clazz, String regexp, Runnable runnable)
public static void assertErrorCode(javax.ws.rs.core.Response.Status status, String message, Runnable runnable)
public static void assertExpectedErrorCollection(Collection<ErrorCollection> errors, Runnable runnable)
public static void assertErrorCodeWithRegexp(javax.ws.rs.core.Response.Status status, String regexp, Runnable runnable)
public static void assertErrorCode(javax.ws.rs.core.Response.Status status, Runnable runnable)
public static void assertErrorCode(int errorCode, String message, Runnable runnable)
public static void assertErrorCodeWithRegexp(int errorCode, String regExp, Runnable runnable)
public static <E> void assertEqualsSymmetrical(E a, E b)
public static <E> void assertNotEquals(E a, E b)
@Nullable public static Transition getTransitionByName(Iterable<Transition> transitions, String transitionName)
public static <K> void assertEmptyIterable(Iterable<K> iterable)
Copyright © 2013 Atlassian. All Rights Reserved.