org.semispace.comet.client
Class CopyOfTerracottaIntegrationTest

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

public class CopyOfTerracottaIntegrationTest
extends junit.framework.TestCase

Copy of terracotta test set, geared towards comet-space. Notice that the number of elements that are inserted are typically quite fewer than in the terracotta test. Before comet improvements: 76 sec for all tests, one failing: testAsyncWithFourThreads. After 31, no failures


Constructor Summary
CopyOfTerracottaIntegrationTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testAlternateHolder()
           
 void testAsync()
           
 void testAsyncWithFourThreads()
           
 void testDifferentObjects()
           
 void testFunctionalityBeforeAsync()
           
 void testInsertionTime()
          Will not fail on insertion time, really.
 void testPreciseRead()
           
 void testQuantity()
           
 void testQuantity2()
           
 void testRead()
           
 void testWrite()
           
 
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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CopyOfTerracottaIntegrationTest

public CopyOfTerracottaIntegrationTest()
Method Detail

setUp

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

tearDown

public void tearDown()
              throws InterruptedException
Overrides:
tearDown in class junit.framework.TestCase
Throws:
InterruptedException

testWrite

public void testWrite()

testRead

public void testRead()
              throws InterruptedException
Throws:
InterruptedException

testFunctionalityBeforeAsync

public void testFunctionalityBeforeAsync()
                                  throws InterruptedException
Throws:
InterruptedException

testAsync

public void testAsync()
               throws InterruptedException
Throws:
InterruptedException

testPreciseRead

public void testPreciseRead()
                     throws InterruptedException
Throws:
InterruptedException

testQuantity

public void testQuantity()

testQuantity2

public void testQuantity2()

testAlternateHolder

public void testAlternateHolder()

testDifferentObjects

public void testDifferentObjects()

testAsyncWithFourThreads

public void testAsyncWithFourThreads()
                              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.