public class RepositoryStartStopTest
extends junit.framework.TestCase
RepositoryStartupTest.
This test allows you to verify that your context
is able to shut down cleanly, as well as that the
minimal context is able to do the same.
As this test opens and closes lots of contexts,
it is rather slow....| Constructor and Description |
|---|
RepositoryStartStopTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertNoCachedApplicationContext()
Checks that the ApplicationContext cache on the
ApplicationContextHelper is empty
|
void |
doTestBasicWriteOperations(org.springframework.context.ApplicationContext ctx) |
void |
setUp() |
void |
tearDown() |
void |
testOpenClose()
Tests that we can open a context, use
it, and then close it again without error
|
void |
testOpenCloseOpenCloseFull()
Using a full autostarting context:
Test that we can bring up and close down
a context twice without error, using it
when running.
|
void |
testOpenCloseOpenCloseNoAutostart()
Using a minimal no-autostart context:
Test that we can bring up and close down
a context twice without error, using it
when running.
|
void |
testOpenCloseRepeatedly()
Tests that we can open a context, use it,
close it, and open a different one.
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, formatpublic void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionpublic void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionpublic static void assertNoCachedApplicationContext()
throws java.lang.Exception
java.lang.Exceptionpublic void testOpenClose()
throws java.lang.Exception
java.lang.Exceptionpublic void testOpenCloseOpenCloseNoAutostart()
throws java.lang.Exception
java.lang.Exceptionpublic void testOpenCloseOpenCloseFull()
throws java.lang.Exception
java.lang.Exceptionpublic void testOpenCloseRepeatedly()
throws java.lang.Exception
java.lang.Exceptionpublic void doTestBasicWriteOperations(org.springframework.context.ApplicationContext ctx)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.