com.atlassian.jira.rest.client
Class TestUtil
java.lang.Object
com.atlassian.jira.rest.client.TestUtil
public class TestUtil
- extends Object
|
Method Summary |
static
|
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
|
assertNotEquals(E a,
E b)
|
static
|
assertThrows(Class<T> clazz,
String regexp,
Runnable runnable)
|
static
|
findEntityByName(Iterable<T> entities,
String name)
|
static String |
getLastPathSegment(URI uri)
|
static Transition |
getTransitionByName(Iterable<Transition> transitions,
String transitionName)
|
static org.joda.time.DateTime |
toDateTime(String isoDateTimeSt)
|
static URI |
toUri(String str)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestUtil
public TestUtil()
toUri
public static URI toUri(String str)
toDateTime
public static org.joda.time.DateTime toDateTime(String isoDateTimeSt)
assertErrorCode
public static void assertErrorCode(int errorCode,
Runnable runnable)
assertThrows
public static <T extends Throwable> void assertThrows(Class<T> clazz,
String regexp,
Runnable runnable)
assertErrorCode
public static void assertErrorCode(javax.ws.rs.core.Response.Status status,
String message,
Runnable runnable)
assertErrorCodeWithRegexp
public static void assertErrorCodeWithRegexp(javax.ws.rs.core.Response.Status status,
String regexp,
Runnable runnable)
assertErrorCode
public static void assertErrorCode(javax.ws.rs.core.Response.Status status,
Runnable runnable)
assertErrorCode
public static void assertErrorCode(int errorCode,
String message,
Runnable runnable)
assertErrorCodeWithRegexp
public static void assertErrorCodeWithRegexp(int errorCode,
String regExp,
Runnable runnable)
getLastPathSegment
public static String getLastPathSegment(URI uri)
assertEqualsSymmetrical
public static <E> void assertEqualsSymmetrical(E a,
E b)
assertNotEquals
public static <E> void assertNotEquals(E a,
E b)
findEntityByName
public static <T extends NamedEntity> T findEntityByName(Iterable<T> entities,
String name)
getTransitionByName
@Nullable
public static Transition getTransitionByName(Iterable<Transition> transitions,
String transitionName)
Copyright © 2012 Atlassian Pty Ltd. All Rights Reserved.