org.ogf.graap.wsag.it
Class AbstractAgreementFactoryTest

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.AbstractAgreementFactoryTest
All Implemented Interfaces:
junit.framework.Test

public abstract class AbstractAgreementFactoryTest
extends AbstractIntegrationTest

AbstractAgreementFactoryTest

Author:
Oliver Waeldrich

Field Summary
 
Fields inherited from class org.ogf.graap.wsag.it.AbstractIntegrationTest
EXPECTED_FACTORIES, EXPECTED_TEMPLATES_FACTORY_1, EXPECTED_TEMPLATES_FACTORY_2
 
Constructor Summary
AbstractAgreementFactoryTest(String name)
           
 
Method Summary
 void testCreateAgreement()
          Tests agreement creation.
 void testCreateAgreementException()
          Tests exception handling in the agreement creation process.
 void testCreateDestroyAgreement()
          Tests creation and destruction of agreement WSRF resources.
 void testCreateTerminateAgreement()
          Tests agreement creation and termination.
 void testGetFactoryClientURL()
          Test for Bug 79.
 void testGetTemplate()
          Tests retrieving templates from an agreement factory.
 void testResourceUnknown()
          Test for accessing unknown agreement WSRF resources.
 
Methods inherited from class org.ogf.graap.wsag.it.AbstractIntegrationTest
getAgreementFactoryClients, 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
 

Constructor Detail

AbstractAgreementFactoryTest

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

testCreateDestroyAgreement

public void testCreateDestroyAgreement()
Tests creation and destruction of agreement WSRF resources.


testGetTemplate

public void testGetTemplate()
                     throws Exception
Tests retrieving templates from an agreement factory.

Throws:
Exception - indicates a test failure

testCreateAgreement

public void testCreateAgreement()
                         throws Exception
Tests agreement creation.

Throws:
Exception - indicates a test failure

testCreateTerminateAgreement

public void testCreateTerminateAgreement()
                                  throws Exception
Tests agreement creation and termination.

Throws:
Exception - indicates a test failure

testCreateAgreementException

public void testCreateAgreementException()
                                  throws Exception
Tests exception handling in the agreement creation process. This includes proper de-/serialization of faults.

Throws:
Exception - indicates a test failure

testGetFactoryClientURL

public void testGetFactoryClientURL()
Test for Bug 79. Bug 79: There seems to be a problem in creating agreement factory if the URL contains "/" at the end of the address. It works fine if one uses the following url string: http://localhost:8080/wsag4j-agreement-factory-0.1.14


testResourceUnknown

public void testResourceUnknown()
                         throws Exception
Test for accessing unknown agreement WSRF resources.

Throws:
Exception - indicates a test failure


Copyright © 2008-2012 Fraunhofer Institute SCAI. All Rights Reserved.