Groovy Documentation

[Groovy] Class UtilsTests

java.lang.Object
  junit.framework.Assert
      junit.framework.TestCase
          groovy.util.GroovyTestCase
              grails.test.GrailsUnitTestCase
                  UtilsTests

class UtilsTests
extends grails.test.GrailsUnitTestCase

Unit tests for the static utility methods.

Authors:
Thomas P. Fuller


Field Summary
 
Fields inherited from class grails.test.GrailsUnitTestCase
__timeStamp, __timeStamp__239_neverHappen1297871266127, TEST_SCRIPT_NAME_PREFIX
 
Fields inherited from class groovy.util.GroovyTestCase
TEST_SCRIPT_NAME_PREFIX
 
Constructor Summary
UtilsTests()

 
Method Summary
void setUp()

void testFindAllListenersUsingSetAndValidData()

void testImplementsInterfaceFalseExpected()

void testImplementsInterfaceWithValidData()

void testRemoveListenerWithValidData()

void testVersionAwareMarshallerImplementsMarshallerInterface()

 
Methods inherited from class grails.test.GrailsUnitTestCase
grails.test.GrailsUnitTestCase#setProperty(java.lang.String, java.lang.Object), grails.test.GrailsUnitTestCase#getProperty(java.lang.String), grails.test.GrailsUnitTestCase#invokeMethod(java.lang.String, java.lang.Object), grails.test.GrailsUnitTestCase#getMetaClass(), grails.test.GrailsUnitTestCase#setMetaClass(groovy.lang.MetaClass), grails.test.GrailsUnitTestCase#__, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#this, grails.test.GrailsUnitTestCase#this, grails.test.GrailsUnitTestCase#this, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#setApplicationContext(java.lang.Object), grails.test.GrailsUnitTestCase#getApplicationContext(), grails.test.GrailsUnitTestCase#getLoadedCodecs(), grails.test.GrailsUnitTestCase#setLoadedCodecs(java.util.Set), grails.test.GrailsUnitTestCase#getSavedMetaClasses(), grails.test.GrailsUnitTestCase#setSavedMetaClasses(java.util.Map), grails.test.GrailsUnitTestCase#getErrorsMap(), grails.test.GrailsUnitTestCase#setErrorsMap(java.util.Map), grails.test.GrailsUnitTestCase#getDomainClassesInfo(), grails.test.GrailsUnitTestCase#setDomainClassesInfo(org.codehaus.groovy.grails.commons.DefaultArtefactInfo), grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#super, grails.test.GrailsUnitTestCase#getName(), grails.test.GrailsUnitTestCase#getMethodName(), grails.test.GrailsUnitTestCase#notYetImplemented(), grails.test.GrailsUnitTestCase#notYetImplemented(junit.framework.TestCase), grails.test.GrailsUnitTestCase#assertEquals(java.lang.Object, java.lang.Object), grails.test.GrailsUnitTestCase#assertEquals(java.lang.String, java.lang.Object, java.lang.Object), grails.test.GrailsUnitTestCase#assertEquals(java.lang.String, java.lang.String), grails.test.GrailsUnitTestCase#run(), grails.test.GrailsUnitTestCase#run(junit.framework.TestResult), grails.test.GrailsUnitTestCase#toString(), grails.test.GrailsUnitTestCase#setName(java.lang.String), grails.test.GrailsUnitTestCase#countTestCases(), grails.test.GrailsUnitTestCase#runBare(), grails.test.GrailsUnitTestCase#format(java.lang.String, java.lang.Object, java.lang.Object), grails.test.GrailsUnitTestCase#fail(java.lang.String), grails.test.GrailsUnitTestCase#fail(), grails.test.GrailsUnitTestCase#assertNotNull(java.lang.Object), grails.test.GrailsUnitTestCase#assertNotNull(java.lang.String, java.lang.Object), grails.test.GrailsUnitTestCase#assertEquals(byte, byte), grails.test.GrailsUnitTestCase#assertEquals(java.lang.String, java.lang.String, java.lang.String), grails.test.GrailsUnitTestCase#assertEquals(java.lang.String, double, double, double), grails.test.GrailsUnitTestCase#assertEquals(double, double, double), grails.test.GrailsUnitTestCase#assertEquals(java.lang.String, float, float, float), grails.test.GrailsUnitTestCase#assertEquals(float, float, float), grails.test.GrailsUnitTestCase#assertEquals(java.lang.String, long, long), grails.test.GrailsUnitTestCase#assertEquals(long, long), grails.test.GrailsUnitTestCase#assertEquals(java.lang.String, boolean, boolean), grails.test.GrailsUnitTestCase#assertEquals(boolean, boolean), grails.test.GrailsUnitTestCase#assertEquals(int, int), grails.test.GrailsUnitTestCase#assertEquals(java.lang.String, byte, byte), grails.test.GrailsUnitTestCase#assertEquals(java.lang.String, char, char), grails.test.GrailsUnitTestCase#assertEquals(char, char), grails.test.GrailsUnitTestCase#assertEquals(java.lang.String, short, short), grails.test.GrailsUnitTestCase#assertEquals(short, short), grails.test.GrailsUnitTestCase#assertEquals(java.lang.String, int, int), grails.test.GrailsUnitTestCase#assertTrue(java.lang.String, boolean), grails.test.GrailsUnitTestCase#assertTrue(boolean), grails.test.GrailsUnitTestCase#failNotEquals(java.lang.String, java.lang.Object, java.lang.Object), grails.test.GrailsUnitTestCase#assertFalse(boolean), grails.test.GrailsUnitTestCase#assertFalse(java.lang.String, boolean), grails.test.GrailsUnitTestCase#assertNull(java.lang.String, java.lang.Object), grails.test.GrailsUnitTestCase#assertNull(java.lang.Object), grails.test.GrailsUnitTestCase#assertSame(java.lang.Object, java.lang.Object), grails.test.GrailsUnitTestCase#assertSame(java.lang.String, java.lang.Object, java.lang.Object), grails.test.GrailsUnitTestCase#assertNotSame(java.lang.String, java.lang.Object, java.lang.Object), grails.test.GrailsUnitTestCase#assertNotSame(java.lang.Object, java.lang.Object), grails.test.GrailsUnitTestCase#failSame(java.lang.String), grails.test.GrailsUnitTestCase#failNotSame(java.lang.String, java.lang.Object, java.lang.Object), grails.test.GrailsUnitTestCase#wait(), grails.test.GrailsUnitTestCase#wait(long, int), grails.test.GrailsUnitTestCase#wait(long), grails.test.GrailsUnitTestCase#hashCode(), grails.test.GrailsUnitTestCase#getClass(), grails.test.GrailsUnitTestCase#equals(java.lang.Object), grails.test.GrailsUnitTestCase#notify(), grails.test.GrailsUnitTestCase#notifyAll()
 
Methods inherited from class groovy.util.GroovyTestCase
groovy.util.GroovyTestCase#getName(), groovy.util.GroovyTestCase#getMethodName(), groovy.util.GroovyTestCase#notYetImplemented(), groovy.util.GroovyTestCase#notYetImplemented(junit.framework.TestCase), groovy.util.GroovyTestCase#assertEquals(java.lang.Object, java.lang.Object), groovy.util.GroovyTestCase#assertEquals(java.lang.String, java.lang.Object, java.lang.Object), groovy.util.GroovyTestCase#assertEquals(java.lang.String, java.lang.String), groovy.util.GroovyTestCase#run(), groovy.util.GroovyTestCase#run(junit.framework.TestResult), groovy.util.GroovyTestCase#toString(), groovy.util.GroovyTestCase#setName(java.lang.String), groovy.util.GroovyTestCase#countTestCases(), groovy.util.GroovyTestCase#runBare(), groovy.util.GroovyTestCase#format(java.lang.String, java.lang.Object, java.lang.Object), groovy.util.GroovyTestCase#fail(java.lang.String), groovy.util.GroovyTestCase#fail(), groovy.util.GroovyTestCase#assertNotNull(java.lang.Object), groovy.util.GroovyTestCase#assertNotNull(java.lang.String, java.lang.Object), groovy.util.GroovyTestCase#assertEquals(byte, byte), groovy.util.GroovyTestCase#assertEquals(java.lang.String, java.lang.String, java.lang.String), groovy.util.GroovyTestCase#assertEquals(java.lang.String, double, double, double), groovy.util.GroovyTestCase#assertEquals(double, double, double), groovy.util.GroovyTestCase#assertEquals(java.lang.String, float, float, float), groovy.util.GroovyTestCase#assertEquals(float, float, float), groovy.util.GroovyTestCase#assertEquals(java.lang.String, long, long), groovy.util.GroovyTestCase#assertEquals(long, long), groovy.util.GroovyTestCase#assertEquals(java.lang.String, boolean, boolean), groovy.util.GroovyTestCase#assertEquals(boolean, boolean), groovy.util.GroovyTestCase#assertEquals(int, int), groovy.util.GroovyTestCase#assertEquals(java.lang.String, byte, byte), groovy.util.GroovyTestCase#assertEquals(java.lang.String, char, char), groovy.util.GroovyTestCase#assertEquals(char, char), groovy.util.GroovyTestCase#assertEquals(java.lang.String, short, short), groovy.util.GroovyTestCase#assertEquals(short, short), groovy.util.GroovyTestCase#assertEquals(java.lang.String, int, int), groovy.util.GroovyTestCase#assertTrue(java.lang.String, boolean), groovy.util.GroovyTestCase#assertTrue(boolean), groovy.util.GroovyTestCase#failNotEquals(java.lang.String, java.lang.Object, java.lang.Object), groovy.util.GroovyTestCase#assertFalse(boolean), groovy.util.GroovyTestCase#assertFalse(java.lang.String, boolean), groovy.util.GroovyTestCase#assertNull(java.lang.String, java.lang.Object), groovy.util.GroovyTestCase#assertNull(java.lang.Object), groovy.util.GroovyTestCase#assertSame(java.lang.Object, java.lang.Object), groovy.util.GroovyTestCase#assertSame(java.lang.String, java.lang.Object, java.lang.Object), groovy.util.GroovyTestCase#assertNotSame(java.lang.String, java.lang.Object, java.lang.Object), groovy.util.GroovyTestCase#assertNotSame(java.lang.Object, java.lang.Object), groovy.util.GroovyTestCase#failSame(java.lang.String), groovy.util.GroovyTestCase#failNotSame(java.lang.String, java.lang.Object, java.lang.Object), groovy.util.GroovyTestCase#wait(), groovy.util.GroovyTestCase#wait(long, int), groovy.util.GroovyTestCase#wait(long), groovy.util.GroovyTestCase#hashCode(), groovy.util.GroovyTestCase#getClass(), groovy.util.GroovyTestCase#equals(java.lang.Object), groovy.util.GroovyTestCase#notify(), groovy.util.GroovyTestCase#notifyAll()
 
Methods inherited from class junit.framework.TestCase
junit.framework.TestCase#run(), junit.framework.TestCase#run(junit.framework.TestResult), junit.framework.TestCase#toString(), junit.framework.TestCase#getName(), junit.framework.TestCase#setName(java.lang.String), junit.framework.TestCase#countTestCases(), junit.framework.TestCase#runBare(), junit.framework.TestCase#format(java.lang.String, java.lang.Object, java.lang.Object), junit.framework.TestCase#fail(java.lang.String), junit.framework.TestCase#fail(), junit.framework.TestCase#assertNotNull(java.lang.Object), junit.framework.TestCase#assertNotNull(java.lang.String, java.lang.Object), junit.framework.TestCase#assertEquals(byte, byte), junit.framework.TestCase#assertEquals(java.lang.String, java.lang.Object, java.lang.Object), junit.framework.TestCase#assertEquals(java.lang.Object, java.lang.Object), junit.framework.TestCase#assertEquals(java.lang.String, java.lang.String, java.lang.String), junit.framework.TestCase#assertEquals(java.lang.String, java.lang.String), junit.framework.TestCase#assertEquals(java.lang.String, double, double, double), junit.framework.TestCase#assertEquals(double, double, double), junit.framework.TestCase#assertEquals(java.lang.String, float, float, float), junit.framework.TestCase#assertEquals(float, float, float), junit.framework.TestCase#assertEquals(java.lang.String, long, long), junit.framework.TestCase#assertEquals(long, long), junit.framework.TestCase#assertEquals(java.lang.String, boolean, boolean), junit.framework.TestCase#assertEquals(boolean, boolean), junit.framework.TestCase#assertEquals(int, int), junit.framework.TestCase#assertEquals(java.lang.String, byte, byte), junit.framework.TestCase#assertEquals(java.lang.String, char, char), junit.framework.TestCase#assertEquals(char, char), junit.framework.TestCase#assertEquals(java.lang.String, short, short), junit.framework.TestCase#assertEquals(short, short), junit.framework.TestCase#assertEquals(java.lang.String, int, int), junit.framework.TestCase#assertTrue(java.lang.String, boolean), junit.framework.TestCase#assertTrue(boolean), junit.framework.TestCase#failNotEquals(java.lang.String, java.lang.Object, java.lang.Object), junit.framework.TestCase#assertFalse(boolean), junit.framework.TestCase#assertFalse(java.lang.String, boolean), junit.framework.TestCase#assertNull(java.lang.String, java.lang.Object), junit.framework.TestCase#assertNull(java.lang.Object), junit.framework.TestCase#assertSame(java.lang.Object, java.lang.Object), junit.framework.TestCase#assertSame(java.lang.String, java.lang.Object, java.lang.Object), junit.framework.TestCase#assertNotSame(java.lang.String, java.lang.Object, java.lang.Object), junit.framework.TestCase#assertNotSame(java.lang.Object, java.lang.Object), junit.framework.TestCase#failSame(java.lang.String), junit.framework.TestCase#failNotSame(java.lang.String, java.lang.Object, java.lang.Object), junit.framework.TestCase#wait(), junit.framework.TestCase#wait(long, int), junit.framework.TestCase#wait(long), junit.framework.TestCase#hashCode(), junit.framework.TestCase#getClass(), junit.framework.TestCase#equals(java.lang.Object), junit.framework.TestCase#notify(), junit.framework.TestCase#notifyAll()
 
Methods inherited from class junit.framework.Assert
junit.framework.Assert#format(java.lang.String, java.lang.Object, java.lang.Object), junit.framework.Assert#fail(java.lang.String), junit.framework.Assert#fail(), junit.framework.Assert#assertNotNull(java.lang.Object), junit.framework.Assert#assertNotNull(java.lang.String, java.lang.Object), junit.framework.Assert#assertEquals(byte, byte), junit.framework.Assert#assertEquals(java.lang.String, java.lang.Object, java.lang.Object), junit.framework.Assert#assertEquals(java.lang.Object, java.lang.Object), junit.framework.Assert#assertEquals(java.lang.String, java.lang.String, java.lang.String), junit.framework.Assert#assertEquals(java.lang.String, java.lang.String), junit.framework.Assert#assertEquals(java.lang.String, double, double, double), junit.framework.Assert#assertEquals(double, double, double), junit.framework.Assert#assertEquals(java.lang.String, float, float, float), junit.framework.Assert#assertEquals(float, float, float), junit.framework.Assert#assertEquals(java.lang.String, long, long), junit.framework.Assert#assertEquals(long, long), junit.framework.Assert#assertEquals(java.lang.String, boolean, boolean), junit.framework.Assert#assertEquals(boolean, boolean), junit.framework.Assert#assertEquals(int, int), junit.framework.Assert#assertEquals(java.lang.String, byte, byte), junit.framework.Assert#assertEquals(java.lang.String, char, char), junit.framework.Assert#assertEquals(char, char), junit.framework.Assert#assertEquals(java.lang.String, short, short), junit.framework.Assert#assertEquals(short, short), junit.framework.Assert#assertEquals(java.lang.String, int, int), junit.framework.Assert#assertTrue(java.lang.String, boolean), junit.framework.Assert#assertTrue(boolean), junit.framework.Assert#failNotEquals(java.lang.String, java.lang.Object, java.lang.Object), junit.framework.Assert#assertFalse(boolean), junit.framework.Assert#assertFalse(java.lang.String, boolean), junit.framework.Assert#assertNull(java.lang.String, java.lang.Object), junit.framework.Assert#assertNull(java.lang.Object), junit.framework.Assert#assertSame(java.lang.Object, java.lang.Object), junit.framework.Assert#assertSame(java.lang.String, java.lang.Object, java.lang.Object), junit.framework.Assert#assertNotSame(java.lang.String, java.lang.Object, java.lang.Object), junit.framework.Assert#assertNotSame(java.lang.Object, java.lang.Object), junit.framework.Assert#failSame(java.lang.String), junit.framework.Assert#failNotSame(java.lang.String, java.lang.Object, java.lang.Object), junit.framework.Assert#wait(), junit.framework.Assert#wait(long, int), junit.framework.Assert#wait(long), junit.framework.Assert#hashCode(), junit.framework.Assert#getClass(), junit.framework.Assert#equals(java.lang.Object), junit.framework.Assert#toString(), junit.framework.Assert#notify(), junit.framework.Assert#notifyAll()
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Constructor Detail

UtilsTests

UtilsTests()


 
Method Detail

setUp

void setUp()


testFindAllListenersUsingSetAndValidData

void testFindAllListenersUsingSetAndValidData()


testImplementsInterfaceFalseExpected

void testImplementsInterfaceFalseExpected()


testImplementsInterfaceWithValidData

void testImplementsInterfaceWithValidData()


testRemoveListenerWithValidData

void testRemoveListenerWithValidData()


testVersionAwareMarshallerImplementsMarshallerInterface

void testVersionAwareMarshallerImplementsMarshallerInterface()


 

Groovy Documentation