org.jruby.test
Class TestHelper
java.lang.Object
org.jruby.test.TestHelper
- public class TestHelper
- extends java.lang.Object
Helper class, used for testing calls to java from ruby code.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
localVariable1
public java.lang.String localVariable1
TestHelper
public TestHelper()
removeWarningsFromEclipse
public static void removeWarningsFromEclipse()
identityTest
public java.lang.String identityTest()
createArray
public static java.lang.String[] createArray(int i)
- used to test Java Arrays in Ruby.
while we don't yet have a way to create them this can be used to test basic
array functionalities
throwException
public static void throwException()
- used to test native exception handling.
getInterfacedInstance
public static TestHelper.SomeInterface getInterfacedInstance()
- Returns:
- object used to test casting
getLooslyCastedInstance
public static java.lang.Object getLooslyCastedInstance()
getNull
public static java.lang.Object getNull()
loadAlternateClass
public static java.lang.Class loadAlternateClass()
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
loadAndCall
public static IRubyObject loadAndCall(IRubyObject self,
java.lang.String name,
byte[] javaClass,
java.lang.String methodName)
throws java.lang.Throwable
- Used by JVM bytecode compiler tests to run compiled code
- Throws:
java.lang.Throwable
getClassName
public static java.lang.String getClassName(java.lang.Class klass)
throwTestHelperException
public static void throwTestHelperException()
Copyright © 2002-2007 JRuby Team. All Rights Reserved.