|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.springframework.test.ConditionalTestCase
org.springframework.test.AbstractSpringContextTests
org.springframework.test.AbstractSingleSpringContextTests
org.springframework.test.AbstractDependencyInjectionSpringContextTests
org.springframework.test.AbstractTransactionalSpringContextTests
org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
org.lambico.test.spring.EnhancedTestCase
public abstract class EnhancedTestCase
Adds useful assertions to the standard JUnit TestCase.
| Field Summary |
|---|
| Fields inherited from class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests |
|---|
profileValueSource, simpleJdbcTemplate |
| Fields inherited from class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests |
|---|
jdbcTemplate |
| Fields inherited from class org.springframework.test.AbstractTransactionalSpringContextTests |
|---|
transactionDefinition, transactionManager, transactionStatus |
| Fields inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests |
|---|
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO |
| Fields inherited from class org.springframework.test.AbstractSingleSpringContextTests |
|---|
applicationContext |
| Fields inherited from class org.springframework.test.ConditionalTestCase |
|---|
logger |
| Constructor Summary | |
|---|---|
EnhancedTestCase()
|
|
| Method Summary | |
|---|---|
static void |
assertEmpty(java.util.Collection c)
Assert the emptyness of a Collection. |
static void |
assertEquals(byte[] expected,
byte[] actual)
Assert equality between two arrays of bytes. |
static void |
assertEquals(double[] expected,
double[] actual)
Assert equality between two arrays of doubles. |
static void |
assertEquals(java.lang.String description,
byte[] expected,
byte[] actual)
Assert equality between two arrays of bytes. |
static void |
assertEquals(java.lang.String description,
double[] expected,
double[] actual)
Assert equality between two arrays of doubles. |
static void |
assertEqualsIgnoreCase(java.lang.String expected,
java.lang.String actual)
Assert equality of two strings, ignoring the case. |
static void |
assertNotEmpty(java.util.Collection c)
Assert the not emptyness of a Collection. |
static void |
assertNotEmpty(java.lang.Object[] array)
Assert the not emptyness of an array of Objects. |
static void |
assertNotEmpty(java.lang.String message,
java.util.Collection c)
Assert the not emptyness of a Collection. |
static void |
assertNotEmpty(java.lang.String message,
java.lang.Object[] array)
Assert the not emptyness of an array of Objects. |
static void |
assertSize(int size,
java.util.Collection c)
Assert the size of a Collection. |
| Methods inherited from class org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests |
|---|
findUniqueProfileValueSourceFromContext, getTestMethod, isDisabledInThisEnvironment, isRollback, runBare, setDataSource |
| Methods inherited from class org.springframework.test.AbstractTransactionalDataSourceSpringContextTests |
|---|
countRowsInTable, deleteFromTables, executeSqlScript, getJdbcTemplate, setComplete, setSqlScriptEncoding |
| Methods inherited from class org.springframework.test.AbstractTransactionalSpringContextTests |
|---|
endTransaction, isDefaultRollback, onSetUp, onSetUpBeforeTransaction, onSetUpInTransaction, onTearDown, onTearDownAfterTransaction, onTearDownInTransaction, preventTransaction, setDefaultRollback, setTransactionDefinition, setTransactionManager, startNewTransaction |
| Methods inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests |
|---|
getAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariables |
| Methods inherited from class org.springframework.test.AbstractSingleSpringContextTests |
|---|
contextKey, createApplicationContext, createBeanDefinitionReader, customizeBeanFactory, getApplicationContext, getConfigLocations, getConfigPath, getConfigPaths, getLoadCount, loadContext, loadContextLocations, prepareApplicationContext, setDirty, setUp, tearDown |
| Methods inherited from class org.springframework.test.AbstractSpringContextTests |
|---|
addContext, contextKeyString, getContext, hasCachedContext, isContextKeyEmpty, setDirty |
| Methods inherited from class org.springframework.test.ConditionalTestCase |
|---|
getDisabledTestCount, isDisabledInThisEnvironment, recordDisabled |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EnhancedTestCase()
| Method Detail |
|---|
public static void assertEquals(byte[] expected,
byte[] actual)
expected - The expected array.actual - The inspected array.
public static void assertEquals(java.lang.String description,
byte[] expected,
byte[] actual)
description - The message in case of inequality.expected - The expected array.actual - The inspected array.
public static void assertEquals(double[] expected,
double[] actual)
expected - The expected array.actual - The inspected array.
public static void assertEquals(java.lang.String description,
double[] expected,
double[] actual)
description - The message in case of inequality.expected - The expected array.actual - The inspected array.
public static void assertEqualsIgnoreCase(java.lang.String expected,
java.lang.String actual)
expected - The expected string.actual - The inspected string.public static void assertEmpty(java.util.Collection c)
c - The collection to inspect.
public static void assertNotEmpty(java.lang.String message,
java.util.Collection c)
message - The message in case the collection is empty.c - The collection to inspect.public static void assertNotEmpty(java.util.Collection c)
c - The collection to inspect.
public static void assertNotEmpty(java.lang.String message,
java.lang.Object[] array)
message - The message in case the array is empty.array - The collection to inspect.public static void assertNotEmpty(java.lang.Object[] array)
array - The collection to inspect.
public static void assertSize(int size,
java.util.Collection c)
size - The expected size.c - The Collection to inspect.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||