|
||||||||||
| 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.jruby.util.JRubyThreadContextTest
public class JRubyThreadContextTest
Test that the thread context classloader can be changed. There are two types of tests: runtime, and request. + runtime tests check that the context may change between different Ruby instances. + request tests check that the context may change between requests on the same Ruby instance. Currently per per request tests fail, as implementing a fix for this is much more difficult.
| Constructor Summary | |
|---|---|
JRubyThreadContextTest()
|
|
| Method Summary | |
|---|---|
protected void |
setUp()
|
void |
testRedefineClassPerRuntime()
Checks if a class can be redefined between different Ruby instances. |
void |
testThreadContextPerRuntime()
Check that the thread context can be different between Ruby instances |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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 JRubyThreadContextTest()
| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionpublic void testThreadContextPerRuntime()
public void testRedefineClassPerRuntime()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||