org.jruby.test
Class TestRuby

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jruby.test.TestRubyBase
              extended byorg.jruby.test.TestRuby
All Implemented Interfaces:
junit.framework.Test

public class TestRuby
extends TestRubyBase

Unit test for the ruby class.

Author:
Benoit

Field Summary
 
Fields inherited from class org.jruby.test.TestRubyBase
runtime
 
Constructor Summary
TestRuby(java.lang.String name)
           
 
Method Summary
 void setUp()
           
 void testPrintErrorShouldOnlyPrintErrorMessageWhenBacktraceIsNil()
           
 void testPrintErrorShouldPrintErrorMessageAndStacktraceWhenBacktraceIsPresent()
           
 void testPrintErrorWithNilBacktrace()
           
 void testPrintErrorWithStringBacktrace()
           
 void testVarAndMet()
           
 
Methods inherited from class org.jruby.test.TestRubyBase
eval, tearDown
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestRuby

public TestRuby(java.lang.String name)
Method Detail

setUp

public void setUp()

testVarAndMet

public void testVarAndMet()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testPrintErrorWithNilBacktrace

public void testPrintErrorWithNilBacktrace()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testPrintErrorWithStringBacktrace

public void testPrintErrorWithStringBacktrace()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testPrintErrorShouldPrintErrorMessageAndStacktraceWhenBacktraceIsPresent

public void testPrintErrorShouldPrintErrorMessageAndStacktraceWhenBacktraceIsPresent()

testPrintErrorShouldOnlyPrintErrorMessageWhenBacktraceIsNil

public void testPrintErrorShouldOnlyPrintErrorMessageWhenBacktraceIsNil()


Copyright © 2002-2007 JRuby Team. All Rights Reserved.