org.ogf.graap.wsag.doc
Class AbstractAgreementIntegrationSnippets

java.lang.Object
  extended by org.ogf.graap.wsag.doc.AbstractAgreementIntegrationSnippets

public class AbstractAgreementIntegrationSnippets
extends Object

Code snippets used in documentation.

Author:
Karl Catewicz

Field Summary
static int EXPECTED_FACTORIES
          number of factories configured in the framework
static int EXPECTED_TEMPLATES_FACTORY_1
          number of templates at factory 1
 
Constructor Summary
AbstractAgreementIntegrationSnippets()
           
 
Method Summary
static AgreementFactoryClient[] getAgreementFactoryClients()
          Returns the factory clients for this tests.
static LoginContext getLoginContext()
          Returns the login context used in the unit tests.
 void testCreateAgreement()
          Code snippet to illustrate how agreements are created with an agreement factory.
 void testCreateAgreementException()
          Code snippet to illustrate exception handling during agreements creation.
 void testCreateTerminateAgreement()
          Code snippet to illustrate agreements termination.
 void testGetTemplate()
          Code snippet to illustrate how templates are retrieved from an agreement factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPECTED_FACTORIES

public static final int EXPECTED_FACTORIES
number of factories configured in the framework

See Also:
Constant Field Values

EXPECTED_TEMPLATES_FACTORY_1

public static final int EXPECTED_TEMPLATES_FACTORY_1
number of templates at factory 1

See Also:
Constant Field Values
Constructor Detail

AbstractAgreementIntegrationSnippets

public AbstractAgreementIntegrationSnippets()
Method Detail

getLoginContext

public static LoginContext getLoginContext()
                                    throws Exception
Returns the login context used in the unit tests.

Returns:
the client login context
Throws:
Exception - indicates a failure during test case execution

testGetTemplate

public void testGetTemplate()
                     throws Exception
Code snippet to illustrate how templates are retrieved from an agreement factory.

Throws:
Exception - indicates a failure during test case execution

testCreateAgreement

public void testCreateAgreement()
                         throws Exception
Code snippet to illustrate how agreements are created with an agreement factory.

Throws:
Exception - indicates a failure during test case execution

testCreateAgreementException

public void testCreateAgreementException()
                                  throws Exception
Code snippet to illustrate exception handling during agreements creation.

Throws:
Exception - indicates a failure during test case execution

testCreateTerminateAgreement

public void testCreateTerminateAgreement()
                                  throws Exception
Code snippet to illustrate agreements termination.

Throws:
Exception - indicates a failure during test case execution

getAgreementFactoryClients

public static AgreementFactoryClient[] getAgreementFactoryClients()
                                                           throws Exception
Returns the factory clients for this tests.

Returns:
the factory clients
Throws:
Exception - indicates an error while generating the agreement factory client list


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