|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvnet.hudson.test.JenkinsMatchers
public class JenkinsMatchers
Some handy matchers.
| Constructor Summary | |
|---|---|
JenkinsMatchers()
|
|
| Method Summary | |
|---|---|
static org.hamcrest.Matcher<hudson.util.FormValidation> |
causedBy(Class<? extends Throwable> cause)
|
static org.hamcrest.Matcher<Throwable> |
hasCause(Class<? extends Throwable> cause)
A matcher that verifies that the a root cause of an exception is of the specified type. |
static org.hamcrest.Matcher<Object> |
hasConsistentEquals(Object other)
|
static org.hamcrest.Matcher<Class<?>> |
hasDefaultConstructor()
A matcher which checks that the class has the default constructor. |
static org.hamcrest.Matcher<Object> |
hasHashCodeContract(Object other)
|
static org.hamcrest.Matcher<Object> |
hasImplementedEquals()
|
static org.hamcrest.Matcher<Object> |
hasImplementedHashCode()
|
static org.hamcrest.Matcher<hudson.util.FormValidation> |
hasKind(hudson.util.FormValidation.Kind kind)
|
static org.hamcrest.Matcher<Object> |
hasNonEqualityWithNulls()
|
static org.hamcrest.Matcher<Object> |
hasReflexiveEquals()
|
static org.hamcrest.Matcher<Object> |
hasSymmetricEquals(Object other)
|
static org.hamcrest.Matcher<Object> |
hasTransitiveEquals(Object a,
Object b)
|
static org.hamcrest.Matcher<Class<?>> |
isClassWithOnlyPrivateConstructors()
A matcher which checks that the class has only private constructors. |
static org.hamcrest.Matcher<Class<?>> |
isFinalClass()
A matcher which checks that the class is final. |
static org.hamcrest.Matcher<Class<?>> |
isUtilityClass()
A matcher which checks that the class is a Utility class (i.e. |
static org.hamcrest.Matcher<Class> |
privateConstructorThrows(Class<? extends Throwable> cause)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JenkinsMatchers()
| Method Detail |
|---|
public static org.hamcrest.Matcher<Class> privateConstructorThrows(Class<? extends Throwable> cause)
public static org.hamcrest.Matcher<hudson.util.FormValidation> causedBy(Class<? extends Throwable> cause)
public static org.hamcrest.Matcher<hudson.util.FormValidation> hasKind(hudson.util.FormValidation.Kind kind)
public static org.hamcrest.Matcher<Class<?>> isUtilityClass()
public static org.hamcrest.Matcher<Class<?>> isClassWithOnlyPrivateConstructors()
public static org.hamcrest.Matcher<Class<?>> isFinalClass()
public static org.hamcrest.Matcher<Class<?>> hasDefaultConstructor()
public static org.hamcrest.Matcher<Throwable> hasCause(Class<? extends Throwable> cause)
cause - the type of exception that caused this.
public static org.hamcrest.Matcher<Object> hasImplementedEquals()
public static org.hamcrest.Matcher<Object> hasReflexiveEquals()
public static org.hamcrest.Matcher<Object> hasNonEqualityWithNulls()
public static org.hamcrest.Matcher<Object> hasSymmetricEquals(Object other)
public static org.hamcrest.Matcher<Object> hasConsistentEquals(Object other)
public static org.hamcrest.Matcher<Object> hasTransitiveEquals(Object a,
Object b)
public static org.hamcrest.Matcher<Object> hasImplementedHashCode()
public static org.hamcrest.Matcher<Object> hasHashCodeContract(Object other)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||