org.eclipse.ohf.ihe.xds.consumer.test
Class RetrieveTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eclipse.ohf.ihe.xds.consumer.test.RetrieveTest
All Implemented Interfaces:
junit.framework.Test

public class RetrieveTest
extends junit.framework.TestCase

JUNIT tests for the consumer. Currently set up to test against NIST registry/repository : http://hcxw2k1.nist.gov:8080/xdsServices2/registry/soap/portals/yr3a/storedquery

Author:
Sarah Knoop

Field Summary
static java.lang.String IBM_ARR
           
static java.lang.String NIST
           
static java.lang.String NIST_SECURED
           
 
Constructor Summary
RetrieveTest()
           
 
Method Summary
 void testAudit()
          Tests the Audit record generation of the XDS Consumer for the Retrieve Transaction
 void testRetrieve()
          Test retrieve.
 void testSecuredRetrieve()
          Test retrieve over TLS.
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NIST

public static final java.lang.String NIST
See Also:
Constant Field Values

NIST_SECURED

public static final java.lang.String NIST_SECURED
See Also:
Constant Field Values

IBM_ARR

public static final java.lang.String IBM_ARR
See Also:
Constant Field Values
Constructor Detail

RetrieveTest

public RetrieveTest()
Method Detail

testRetrieve

public void testRetrieve()
                  throws java.lang.Throwable
Test retrieve. Corresponds to Connectathon 2006-2007 Test: 11734
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11734

Throws:
java.lang.Throwable

testSecuredRetrieve

public void testSecuredRetrieve()
                         throws java.lang.Throwable
Test retrieve over TLS. Corresponds to Connectathon 2006-2007 Test: 11739
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11739
You must set the following environmental variables to run this test:
  • 'javax.net.ssl.keyStore' to the location of your key store file
  • 'javax.net.ssl.keyStorePassword' to the password on your key store file
  • 'javax.net.ssl.trustStore' to the location of your trust store file
  • 'javax.net.ssl.trustStorePassword' to the password of your trust store file
  • Throws:
    java.lang.Throwable

    testAudit

    public void testAudit()
                   throws java.lang.Throwable
    Tests the Audit record generation of the XDS Consumer for the Retrieve Transaction

    Throws:
    java.lang.Throwable