public class TestUtil extends Object implements groovy.lang.GroovyObject
| Constructor and Description |
|---|
TestUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertContainsAll(String text,
Object strings) |
static void |
assertContainsAllInOrder(String text,
Object strings) |
static void |
assertEqualSets(Collection collection1,
Collection collection2) |
static List<org.apache.log4j.spi.LoggingEvent> |
captureLog4JMessages(groovy.lang.Closure closure) |
static String |
captureSystemOut(groovy.lang.Closure closure) |
static boolean |
containsAll(String text,
Object strings) |
groovy.lang.MetaClass |
getMetaClass() |
Object |
getProperty(String property) |
Object |
invokeMethod(String method,
Object arguments) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
static String |
shouldFail(Class expectedExceptionClass,
groovy.lang.Closure code) |
static String |
shouldFail(groovy.lang.Closure code) |
static String |
shouldFailWithMessageContaining(Class expectedExceptionClass,
String expectedText,
groovy.lang.Closure code) |
static void |
shouldFailWithMessageContaining(Object text,
groovy.lang.Closure closure) |
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectpublic static String shouldFail(groovy.lang.Closure code)
public static String shouldFailWithMessageContaining(Class expectedExceptionClass, String expectedText, groovy.lang.Closure code)
public static void shouldFailWithMessageContaining(Object text, groovy.lang.Closure closure)
public static void assertEqualSets(Collection collection1, Collection collection2)
public static String captureSystemOut(groovy.lang.Closure closure)
public static List<org.apache.log4j.spi.LoggingEvent> captureLog4JMessages(groovy.lang.Closure closure)
Copyright © 2021. All rights reserved.