org.semispace
Class TerraSpaceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.semispace.TerraSpaceTest
All Implemented Interfaces:
junit.framework.Test

public class TerraSpaceTest
extends junit.framework.TestCase

Tests targeted to test terracotta integration.


Constructor Summary
TerraSpaceTest()
           
 
Method Summary
protected  SemiSpace getSpace()
           
 void setUp()
           
 void testAlternateHolder()
           
 void testAsync()
           
 void testAsyncWithFourThreads()
           
 void testAsyncWithFourThreadsAndId()
           
 void testDifferentObjects()
           
 void testHolderIdArray()
           
 void testInsertionTime()
          Will not fail on insertion time, really.
 void testPreciseRead()
           
 void testQuantity()
           
 void testQuantity2()
           
 void testRead()
           
 void testWhichIllustratesSlownessWithManyElements()
          Test illustrates that a large number of items could benefit from having an index.
 void testWrite()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TerraSpaceTest

public TerraSpaceTest()
Method Detail

getSpace

protected SemiSpace getSpace()

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

testWrite

public void testWrite()

testRead

public void testRead()
              throws InterruptedException
Throws:
InterruptedException

testHolderIdArray

public void testHolderIdArray()

testAsync

public void testAsync()
               throws InterruptedException
Throws:
InterruptedException

testPreciseRead

public void testPreciseRead()
                     throws InterruptedException
Throws:
InterruptedException

testQuantity

public void testQuantity()

testQuantity2

public void testQuantity2()

testWhichIllustratesSlownessWithManyElements

public void testWhichIllustratesSlownessWithManyElements()
Test illustrates that a large number of items could benefit from having an index. The test is horrendously slow when having a large number of elements. NB: This test will fail when having a large (or large-ish) number of elements. This is a deficiency that will need indexes to be improved.


testAlternateHolder

public void testAlternateHolder()

testDifferentObjects

public void testDifferentObjects()

testAsyncWithFourThreads

public void testAsyncWithFourThreads()
                              throws InterruptedException
Throws:
InterruptedException

testAsyncWithFourThreadsAndId

public void testAsyncWithFourThreadsAndId()
                                   throws InterruptedException
Throws:
InterruptedException

testInsertionTime

public void testInsertionTime()
Will not fail on insertion time, really. Just testing how many elements that can be inserted and removed. Note that I do test whether the same number was removed as inserted.



Copyright © 2008-2012. All Rights Reserved.