|
|||||||||
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.alfresco.RepositoryStartStopTest
public class RepositoryStartStopTest
A unit test that verifies it's possible to start up the main
Alfresco context, stop it, start a different context,
stop that, and finally return to the main context.
To do a basic check of if the repository works, use
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 Summary | |
---|---|
RepositoryStartStopTest()
|
Method Summary | |
---|---|
static void |
assertAllCachesShutdown()
Checks that all our EHCache instances have been shutdown |
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. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, 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, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RepositoryStartStopTest()
Method Detail |
---|
public void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
public void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public static void assertNoCachedApplicationContext() throws java.lang.Exception
java.lang.Exception
public static void assertAllCachesShutdown() throws java.lang.Exception
java.lang.Exception
public void testOpenClose() throws java.lang.Exception
java.lang.Exception
public void testOpenCloseOpenCloseNoAutostart() throws java.lang.Exception
java.lang.Exception
public void testOpenCloseOpenCloseFull() throws java.lang.Exception
java.lang.Exception
public void testOpenCloseRepeatedly() throws java.lang.Exception
java.lang.Exception
public void doTestBasicWriteOperations(org.springframework.context.ApplicationContext ctx) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |