org.jruby.javasupport.test
Class TestBSF

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jruby.javasupport.test.RubyTestCase
              extended by org.jruby.javasupport.test.TestBSF
All Implemented Interfaces:
junit.framework.Test

public class TestBSF
extends RubyTestCase


Constructor Summary
TestBSF(java.lang.String name)
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testEmptyList()
           
 void testEmptyMap()
           
 void testList()
           
 void testMap()
          Tests the use of RubyHash when used from java.
 void testMapEntrySetContainsAndRemove()
          Tests the use of RubyHash when used from java.
 void testMapEntrySetIterator()
          Tests the use of RubyHash when used from java.
 void testModifyList()
           
 void testModifyMap()
           
 void testNestedList()
           
 void testNilList()
           
 void testNilMap()
           
 
Methods inherited from class org.jruby.javasupport.test.RubyTestCase
createRuby, initRuby
 
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

TestBSF

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

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testList

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

testModifyList

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

testEmptyList

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

testNilList

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

testNestedList

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

testMap

public void testMap()
             throws java.lang.Exception
Tests the use of RubyHash when used from java. Tests: RubyHash#keySet() RubyHash#get() RubyHash#keySet()#iterator()#hasNext() RubyHash#keySet()#iterator()#next() RubyHash#keySet()#remove() RubyHash#keySet()#contains() RubyHash#keySet()#containsAll() RubyHash#values() RubyHash#values()#iterator() RubyHash#values()#iterator()#hasNext() RubyHash#values()#iterator()#next() RubyHash#values()#contains() RubyHash#values()#containsAll() RubyHash#values()#remove()

Throws:
java.lang.Exception

testMapEntrySetIterator

public void testMapEntrySetIterator()
                             throws java.lang.Exception
Tests the use of RubyHash when used from java. Tests: RubyHash#entrySet() RubyHash#entrySet()#iterator()#hasNext() RubyHash#entrySet()#iterator()#next() RubyHash#entrySet()#iterator()#next()#setValue()

Throws:
java.lang.Exception

testMapEntrySetContainsAndRemove

public void testMapEntrySetContainsAndRemove()
                                      throws java.lang.Exception
Tests the use of RubyHash when used from java. Tests: RubyHash#entrySet()#contains() RubyHash#entrySet()#remove()

Throws:
java.lang.Exception

testModifyMap

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

testEmptyMap

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

testNilMap

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


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