org.ogf.graap.wsag.it
Class AbstractPendingAgreementFactoryTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ogf.graap.wsag.it.WsagTestCase
              extended by org.ogf.graap.wsag.it.AbstractIntegrationTest
                  extended by org.ogf.graap.wsag.it.AbstractPendingAgreementFactoryTest
All Implemented Interfaces:
junit.framework.Test

public abstract class AbstractPendingAgreementFactoryTest
extends AbstractIntegrationTest

Abstract test case for creation of pending agreements.

Author:
Oliver Waeldrich

Field Summary
protected static int SUBCONTRACTING_WAITING_TIME
          waiting time for doing the sub-contracting (pending agreement)
 
Fields inherited from class org.ogf.graap.wsag.it.AbstractIntegrationTest
EXPECTED_TEMPLATES_FACTORY_1, EXPECTED_TEMPLATES_FACTORY_2
 
Constructor Summary
AbstractPendingAgreementFactoryTest(String name)
           
 
Method Summary
 void testCreatePendingAgreement()
          Creates a pending agreement that is accepted after 1 second.
 void testCreatePendingAgreementWithNotification()
          Creates a pending agreement that is accepted after 1 second.
 
Methods inherited from class org.ogf.graap.wsag.it.AbstractIntegrationTest
getAgreementFactoryClient, getAgreementFactoryClients, getDefaultFactoryCount, getLoginContext, getUrl, setUp, setUrl, tearDown
 
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
 

Field Detail

SUBCONTRACTING_WAITING_TIME

protected static final int SUBCONTRACTING_WAITING_TIME
waiting time for doing the sub-contracting (pending agreement)

See Also:
Constant Field Values
Constructor Detail

AbstractPendingAgreementFactoryTest

public AbstractPendingAgreementFactoryTest(String name)
Parameters:
name - the test name
Method Detail

testCreatePendingAgreement

public void testCreatePendingAgreement()
Creates a pending agreement that is accepted after 1 second. The agreement is destroyed afterwards.


testCreatePendingAgreementWithNotification

public void testCreatePendingAgreementWithNotification()
Creates a pending agreement that is accepted after 1 second. On acceptance the creator is notified using the agreement acceptance port type. This implementation uses one factory instance.



Copyright © 2008-2012. All Rights Reserved.