|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.mockejb.jndi.MockContextTest
Tests all basic methods of MockContext. Test for remote context lookup is not included.
Constructor Summary | |
MockContextTest(java.lang.String name)
|
Method Summary | |
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testBindLookup()
Tests ability to bind name to object and inability to bind duplicate names. |
void |
testCompositeNameWithLeadingTrailingEmptyComponents()
|
void |
testDelegateContext()
Tests that delegate context is invoked when MockContext does not find the name |
void |
testGetCompositeName()
Tests "getCompositeName" method |
void |
testListBindings()
Tests ability to list bindings for a context - specified by name through object reference. |
void |
testLookup()
|
void |
testSubcontextCreationOfDuplicates()
Tests inability to create duplicate subcontexts. |
void |
testSubcontextDestruction()
Tests ability to destroy empty subcontexts. |
void |
testSubcontextInvokingMethodsOnDestroyedContext()
Tests inability to invoke methods on destroyed subcontexts. |
void |
testSubcontextNonEmptyDestruction()
Tests inability to destroy non empty subcontexts. |
void |
testTwoSeparatorNames()
Tests substitution of '.' with '/' when parsing string names. |
void |
testUnbind()
Tests ability to unbind names. |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MockContextTest(java.lang.String name)
Method Detail |
protected void setUp() throws java.lang.Exception
java.lang.Exception
protected void tearDown() throws java.lang.Exception
java.lang.Exception
public void testSubcontextCreationOfDuplicates() throws javax.naming.NamingException
javax.naming.NamingException
public void testSubcontextNonEmptyDestruction() throws javax.naming.NamingException
javax.naming.NamingException
public void testSubcontextDestruction() throws javax.naming.NamingException
javax.naming.NamingException
public void testSubcontextInvokingMethodsOnDestroyedContext() throws javax.naming.NamingException
javax.naming.NamingException
public void testBindLookup() throws javax.naming.NamingException
javax.naming.NamingException
public void testUnbind() throws javax.naming.NamingException
javax.naming.NamingException
public void testListBindings() throws javax.naming.NamingException
javax.naming.NamingException
public void testCompositeNameWithLeadingTrailingEmptyComponents() throws java.lang.Exception
java.lang.Exception
public void testLookup() throws java.lang.Exception
java.lang.Exception
public void testGetCompositeName() throws java.lang.Exception
java.lang.Exception
public void testDelegateContext() throws java.lang.Exception
java.lang.Exception
public void testTwoSeparatorNames() throws javax.naming.NamingException
javax.naming.NamingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |