Package org.jruby.test

Examples of org.jruby.test.MockRubyObject$TestMeta


  public void testExecuteWithStaticMethodThrowingException() throws Exception {
    ReflectionCallback callback = new ReflectionCallback(MockRubyObject.class, "throwException",
        new Class[0], false, true, Arity.noArguments(), false);
    try {
      callback.execute(new MockRubyObject(Ruby.newInstance()), new IRubyObject[0], null);
    } catch (RaiseException e) {
      assertEquals(RuntimeException.class, e.getCause().getClass());
    }
   
  }
View Full Code Here

TOP

Related Classes of org.jruby.test.MockRubyObject$TestMeta

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.