public abstract class AbstractJythonInstrumenterTestCase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Instrumenter |
m_instrumenter |
protected org.python.util.PythonInterpreter |
m_interpreter |
protected org.python.core.PyObject |
m_one |
protected Recorder |
m_recorder |
protected RandomStubFactory<Recorder> |
m_recorderStubFactory |
protected org.python.core.PyObject |
m_six |
protected Test |
m_test |
protected org.python.core.PyObject |
m_three |
protected org.python.core.PyObject |
m_two |
protected org.python.core.PyObject |
m_zero |
| Constructor and Description |
|---|
AbstractJythonInstrumenterTestCase(Instrumenter instrumenter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertNotWrappable(Object o) |
protected void |
assertNotWrappableByThisInstrumenter(Object o) |
protected void |
assertTargetReference(org.python.core.PyObject proxy,
Object original) |
protected abstract void |
assertTargetReference(org.python.core.PyObject proxy,
Object original,
boolean unwrapTarget) |
protected abstract void |
assertTestReference(org.python.core.PyObject proxy,
Test test) |
static void |
assertVersion(String expected) |
protected Object |
createInstrumentedProxy(Test test,
Recorder recorder,
org.python.core.PyObject pyTarget) |
protected Class<?> |
getClassForInstance(org.python.core.PyInstance target) |
protected org.python.util.PythonInterpreter |
getInterpretter() |
static Integer[] |
getJythonVersion() |
void |
testCreateProxyWithBoundPyMethod() |
void |
testCreateProxyWithPyFunction() |
void |
testCreateProxyWithPyInstance() |
void |
testCreateProxyWithPyProxy() |
void |
testCreateProxyWithPyReflectedFunction() |
void |
testCreateProxyWithRecursiveCode() |
void |
testCreateProxyWithUnboundPyMethod() |
void |
testPyDispatcherErrorHandling() |
void |
testSelectiveInstrumentUnsupported() |
protected final Instrumenter m_instrumenter
protected final org.python.util.PythonInterpreter m_interpreter
protected final org.python.core.PyObject m_zero
protected final org.python.core.PyObject m_one
protected final org.python.core.PyObject m_two
protected final org.python.core.PyObject m_three
protected final org.python.core.PyObject m_six
protected final Test m_test
protected final RandomStubFactory<Recorder> m_recorderStubFactory
protected final Recorder m_recorder
public AbstractJythonInstrumenterTestCase(Instrumenter instrumenter)
protected abstract void assertTestReference(org.python.core.PyObject proxy,
Test test)
protected abstract void assertTargetReference(org.python.core.PyObject proxy,
Object original,
boolean unwrapTarget)
protected void assertTargetReference(org.python.core.PyObject proxy,
Object original)
protected final org.python.util.PythonInterpreter getInterpretter()
protected final void assertNotWrappable(Object o) throws Exception
Exceptionprotected final void assertNotWrappableByThisInstrumenter(Object o) throws Exception
Exceptionprotected final Object createInstrumentedProxy(Test test, Recorder recorder, org.python.core.PyObject pyTarget) throws NotWrappableTypeException
NotWrappableTypeExceptionprotected final Class<?> getClassForInstance(org.python.core.PyInstance target) throws IllegalArgumentException, IllegalAccessException
public void testCreateProxyWithPyFunction()
throws Exception
Exceptionpublic void testCreateProxyWithPyInstance()
throws Exception
Exceptionpublic void testCreateProxyWithUnboundPyMethod()
throws Exception
Exceptionpublic void testCreateProxyWithBoundPyMethod()
throws Exception
Exceptionpublic void testCreateProxyWithPyReflectedFunction()
throws Exception
Exceptionpublic void testCreateProxyWithPyProxy()
throws Exception
Exceptionpublic void testCreateProxyWithRecursiveCode()
throws Exception
Exceptionpublic void testPyDispatcherErrorHandling()
throws Exception
ExceptionCopyright © 2000-2014. All Rights Reserved.