org.semispace
Class SemiSpaceTest

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

public class SemiSpaceTest
extends junit.framework.TestCase


Nested Class Summary
protected static class SemiSpaceTest.JunitEventListener
           
protected static class SemiSpaceTest.JunitIdListener
           
protected  class SemiSpaceTest.JunitTakingListener
           
 
Constructor Summary
SemiSpaceTest()
           
 
Method Summary
protected  void setUp()
           
 void testExtensionOfListener()
           
 void testIssueWithMaxLong()
           
 void testLeaseCancel()
           
 void testLeaseRenew()
           
 void testNotificationStatistics()
          Add notification size test when having a lease which can be canceled.
 void testRetrievalOfHolderById()
           
 void testRetrieveAdminPropertiesFromObject()
           
 void testRetrievePropertiesFromObject()
           
 void testSimpleWrite()
           
 void testSimpleWriteOf3Elements()
           
 void testStatistics()
           
 void testTakeDuringNotify()
          The purpose of this test is to figure out what happens when you have a take in the notify.
 void testThatAdminCanBeSet()
          Notice that this test is for the benefit of terracotta - it does not have any meaning if not running within terracotta.
 void testThatOperationsWithNullValuesAreNotFatal()
          None of these operations should give NPE
 
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

SemiSpaceTest

public SemiSpaceTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

testThatAdminCanBeSet

public void testThatAdminCanBeSet()
Notice that this test is for the benefit of terracotta - it does not have any meaning if not running within terracotta. (Terracotta ran this test green in 2.5.2)


testIssueWithMaxLong

public void testIssueWithMaxLong()

testRetrievalOfHolderById

public void testRetrievalOfHolderById()
                               throws InterruptedException
Throws:
InterruptedException

testRetrievePropertiesFromObject

public void testRetrievePropertiesFromObject()

testRetrieveAdminPropertiesFromObject

public void testRetrieveAdminPropertiesFromObject()

testThatOperationsWithNullValuesAreNotFatal

public void testThatOperationsWithNullValuesAreNotFatal()
None of these operations should give NPE


testSimpleWrite

public void testSimpleWrite()

testSimpleWriteOf3Elements

public void testSimpleWriteOf3Elements()

testStatistics

public void testStatistics()

testNotificationStatistics

public void testNotificationStatistics()
                                throws InterruptedException
Add notification size test when having a lease which can be canceled.

Throws:
InterruptedException

testTakeDuringNotify

public void testTakeDuringNotify()
                          throws InterruptedException
The purpose of this test is to figure out what happens when you have a take in the notify. All elements should get notified, even when it does not exist anymore.

Throws:
InterruptedException

testExtensionOfListener

public void testExtensionOfListener()
                             throws InterruptedException
Throws:
InterruptedException

testLeaseCancel

public void testLeaseCancel()
                     throws InterruptedException
Throws:
InterruptedException

testLeaseRenew

public void testLeaseRenew()
                    throws InterruptedException
Throws:
InterruptedException


Copyright © 2008-2012. All Rights Reserved.