org.jboss.test.jaxr.scout
Class JaxrBaseTestCase

java.lang.Object
  extended byTestCase
      extended byorg.jboss.test.jaxr.scout.JaxrBaseTestCase
Direct Known Subclasses:
JaxrBusinessQueryTestCase (src) , JaxrConfimAssociationTestCase (src) , JaxrDeleteAssociationTestCase (src) , JaxrDeleteOrganizationTestCase (src) , JaxrFindAssociationsTestCase (src) , JaxrSaveOrganizationTestCase (src) , JaxrSaveServiceBindingTestCase (src)

public class JaxrBaseTestCase
extends TestCase

Acts as the base class for Jaxr Test Cases

Since:
Dec 29, 2004
See Also:
Serialized Form

Field Summary
protected  BusinessLifeCycleManager (src) blm
           
protected  BusinessQueryManager (src) bqm
           
protected  BulkResponse (src) br
           
protected  Connection (src) connection
           
protected static ObjectName (src) OBJECT_NAME
           
protected  java.lang.String passwd
           
protected  RegistryService (src) rs
           
protected  JBossRMIAdaptorHelper (src) server
           
protected  java.lang.String userid
           
 
Constructor Summary
JaxrBaseTestCase()
           
 
Method Summary
protected  Organization (src) createOrganization(java.lang.String orgname)
          Creates a Jaxr Organization with 1 or more services
protected  void deleteOrganization(Key (src)  orgkey)
          Delete an Organization with a given key
protected  Concept (src) getAssociationConcept(java.lang.String associationType)
           
protected  BusinessLifeCycleManager (src) getBusinessLifeCycleManager()
           
protected  BusinessQueryManager (src) getBusinessQueryManager()
           
protected  javax.naming.InitialContext getClientContext()
           
 InternationalString (src) getIString(java.lang.String str)
           
protected  RegistryService (src) getRegistryService()
           
protected  void login()
          Does authentication with the uddi registry
protected  Connection (src) loginSecondUser()
           
 void searchBusiness(java.lang.String bizname)
           
protected  void setUp()
          Setup of the JUnit test We create the juddi tables on startup
protected  void tearDown()
          Teardown of the junit test We discard all the tables created by the juddi service
 void testJaxrEssentials()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userid

protected java.lang.String userid

passwd

protected java.lang.String passwd

blm

protected BusinessLifeCycleManager (src)  blm

rs

protected RegistryService (src)  rs

bqm

protected BusinessQueryManager (src)  bqm

connection

protected Connection (src)  connection

br

protected BulkResponse (src)  br

server

protected JBossRMIAdaptorHelper (src)  server

OBJECT_NAME

protected static final ObjectName (src)  OBJECT_NAME
Constructor Detail

JaxrBaseTestCase

public JaxrBaseTestCase()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Setup of the JUnit test We create the juddi tables on startup

Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Teardown of the junit test We discard all the tables created by the juddi service

Throws:
java.lang.Exception

testJaxrEssentials

public void testJaxrEssentials()

login

protected void login()
Does authentication with the uddi registry


getIString

public InternationalString (src)  getIString(java.lang.String str)
                               throws JAXRException (src) 
Throws:
JAXRException (src)

searchBusiness

public void searchBusiness(java.lang.String bizname)
                    throws JAXRException (src) 
Throws:
JAXRException (src)

getRegistryService

protected RegistryService (src)  getRegistryService()
                                      throws JAXRException (src) 
Throws:
JAXRException (src)

getBusinessQueryManager

protected BusinessQueryManager (src)  getBusinessQueryManager()
                                                throws JAXRException (src) 
Throws:
JAXRException (src)

getBusinessLifeCycleManager

protected BusinessLifeCycleManager (src)  getBusinessLifeCycleManager()
                                                        throws JAXRException (src) 
Throws:
JAXRException (src)

createOrganization

protected Organization (src)  createOrganization(java.lang.String orgname)
                                   throws JAXRException (src) 
Creates a Jaxr Organization with 1 or more services

Returns:
Throws:
JAXRException (src)

deleteOrganization

protected void deleteOrganization(Key (src)  orgkey)
                           throws java.lang.Exception
Delete an Organization with a given key

Parameters:
orgkey -
Throws:
java.lang.Exception

loginSecondUser

protected Connection (src)  loginSecondUser()

getAssociationConcept

protected Concept (src)  getAssociationConcept(java.lang.String associationType)

getClientContext

protected javax.naming.InitialContext getClientContext()
                                                throws javax.naming.NamingException
Throws:
javax.naming.NamingException