Class TerraSpaceTest

java.lang.Object
org.semispace.TerraSpaceTest

@TestInstance(PER_CLASS) public class TerraSpaceTest extends Object
Tests targeted to test terracotta integration.
  • Constructor Details

    • TerraSpaceTest

      public TerraSpaceTest()
  • Method Details

    • getSpace

      protected SemiSpace getSpace()
    • setUp

      @BeforeAll public void setUp()
    • testWrite

      @Test public void testWrite()
    • testRead

      @Test public void testRead() throws InterruptedException
      Throws:
      InterruptedException
    • testHolderIdArray

      @Test public void testHolderIdArray()
    • testAsync

      @Test public void testAsync() throws InterruptedException
      Throws:
      InterruptedException
    • testPreciseRead

      @Test public void testPreciseRead() throws InterruptedException
      Throws:
      InterruptedException
    • testQuantity

      @Test public void testQuantity()
    • testQuantity2

      @Test public void testQuantity2()
    • testWhichIllustratesSlownessWithManyElements

      @Test 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

      @Test public void testAlternateHolder()
    • testDifferentObjects

      @Test public void testDifferentObjects()
    • testAsyncWithFourThreads

      @Test public void testAsyncWithFourThreads() throws InterruptedException
      Throws:
      InterruptedException
    • testAsyncWithFourThreadsAndId

      @Test public void testAsyncWithFourThreadsAndId() throws InterruptedException
      Throws:
      InterruptedException
    • testInsertionTime

      @Test 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.