org.ourgrid.peer.community.nof
Class AccountingManagerImplTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ourgrid.peer.community.nof.AccountingManagerImplTest
All Implemented Interfaces:
junit.framework.Test, FastTest, PeerFastTest, PeerPreCommitTest, PreCommitTest, SelectiveTest, StressTest

public class AccountingManagerImplTest
extends junit.framework.TestCase
implements PeerFastTest


Field Summary
protected  GumID gumID
           
protected  double newBalance
           
protected  ObjectID peerID1
           
protected  ObjectID peerID2
           
protected  ObjectID unknownPeer
           
 
Constructor Summary
AccountingManagerImplTest()
          Constructor for AccountingManagerTest.
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testConsumerAccount()
          Tests the consumerAccount() method.
 void testFinishProviderGMAccountingOfANotStartedAccounting()
           
 void testGetPeerBalance()
           
 void testGetPeerIdForRequest()
           
 void testGetUnknownPeerBalance()
           
 void testProviderAccount()
          Tests the providerAccount() method.
 void testStartAccouting()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Field Detail

newBalance

protected double newBalance

peerID1

protected ObjectID peerID1

unknownPeer

protected ObjectID unknownPeer

gumID

protected GumID gumID

peerID2

protected ObjectID peerID2
Constructor Detail

AccountingManagerImplTest

public AccountingManagerImplTest()
Constructor for AccountingManagerTest.

Method Detail

setUp

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

tearDown

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

testGetUnknownPeerBalance

public void testGetUnknownPeerBalance()

testStartAccouting

public void testStartAccouting()

testGetPeerBalance

public void testGetPeerBalance()

testFinishProviderGMAccountingOfANotStartedAccounting

public void testFinishProviderGMAccountingOfANotStartedAccounting()

testGetPeerIdForRequest

public void testGetPeerIdForRequest()

testProviderAccount

public void testProviderAccount()
Tests the providerAccount() method.


testConsumerAccount

public void testConsumerAccount()
Tests the consumerAccount() method.