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

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

public class IBMOD235RegistryQueryTest
extends junit.framework.TestCase

JUNIT tests for the consumer. Currently set up to test against IBMOD235 registry: http://ibmod235.dal-ebis.ihost.com:9080/ihii/registry/soap. LSWIN10 no longer supports this interface.

Author:
Sarah Knoop

Field Summary
static java.lang.String IBM_ARR
           
static java.lang.String LSWIN10
           
static java.lang.String LSWIN10_SECURED
           
 
Constructor Summary
IBMOD235RegistryQueryTest()
           
 
Method Summary
 void testAudit()
          Tests the Audit record generation of the XDS Consumer for the Registry Query Transaction
 void testFindDocuments()
          Find Documents Query.
 void testFindDocumentsByPatientId()
          Find Documents Query by patientId.
 void testFindDocumentsParameters()
          Test FindDocumentsQuery interface with error cases
 void testGetDocumentByUUID()
          Get Documents Query by document entryUUID.
 void testGetDocumentsByUniqueId()
          Get Documents Query by document uniqueId.
 void testGetDocumentsParameters()
          Test GetDocumentsQuery interface with error cases
 void testQueryForLeafClass()
          Execute Find Documents Registry Query in which the return type requested is "LeafClass", document status is "Approved" and the patient ID is 'NIST-test-10^^^&1.3.6.1.4.1.21367.2005.3.7&ISO'
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11802
 void testQueryForObjectRefs()
          Execute Find Documents Registry Query in which the return type requested is "ObjectRefs", document status is "Approved" and the patient ID is 'NIST-test-10^^^&1.3.6.1.4.1.21367.2005.3.7&ISO'
Connectathon 2006-2007 Test: 11801
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11801
 void testQueryParameters()
          Test the query interface with error cases
 void testSecuredFindDocumentsByPatientId()
          Find Documents Query by patientID 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

LSWIN10

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

LSWIN10_SECURED

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

IBM_ARR

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

IBMOD235RegistryQueryTest

public IBMOD235RegistryQueryTest()
Method Detail

testQueryParameters

public void testQueryParameters()
                         throws java.lang.Throwable
Test the query interface with error cases

Throws:
java.lang.Throwable

testGetDocumentsParameters

public void testGetDocumentsParameters()
                                throws java.lang.Throwable
Test GetDocumentsQuery interface with error cases

Throws:
java.lang.Throwable

testFindDocumentsParameters

public void testFindDocumentsParameters()
                                 throws java.lang.Throwable
Test FindDocumentsQuery interface with error cases

Throws:
java.lang.Throwable

testQueryForObjectRefs

public void testQueryForObjectRefs()
                            throws java.lang.Throwable
Execute Find Documents Registry Query in which the return type requested is "ObjectRefs", document status is "Approved" and the patient ID is 'NIST-test-10^^^&1.3.6.1.4.1.21367.2005.3.7&ISO'
Connectathon 2006-2007 Test: 11801
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11801

Throws:
java.lang.Throwable

testQueryForLeafClass

public void testQueryForLeafClass()
                           throws java.lang.Throwable
Execute Find Documents Registry Query in which the return type requested is "LeafClass", document status is "Approved" and the patient ID is 'NIST-test-10^^^&1.3.6.1.4.1.21367.2005.3.7&ISO'
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11802

Throws:
java.lang.Throwable

testGetDocumentByUUID

public void testGetDocumentByUUID()
                           throws java.lang.Throwable
Get Documents Query by document entryUUID. Corresponds to Connectathon 2006-2007 Test: 11927 and 11893
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#Query_-_Testing_the_Document_Consumer
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11893

Throws:
java.lang.Throwable

testGetDocumentsByUniqueId

public void testGetDocumentsByUniqueId()
                                throws java.lang.Throwable
Get Documents Query by document uniqueId. Corresponds to Connectathon 2006-2007 Test: 11927 and 11893
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#Query_-_Testing_the_Document_Consumer
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11893

Throws:
java.lang.Throwable

testFindDocumentsByPatientId

public void testFindDocumentsByPatientId()
                                  throws java.lang.Throwable
Find Documents Query by patientId. Corresponds to Connectathon 2006-2007 Test: 11923 and 11803
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#Query_-_Testing_the_Document_Consumer
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11803

Throws:
java.lang.Throwable

testFindDocuments

public void testFindDocuments()
                       throws java.lang.Throwable
Find Documents Query. Corresponds to Connectathon 2006-2007 Test: 11923 and 11803
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#Query_-_Testing_the_Document_Consumer
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11803

Throws:
java.lang.Throwable

testSecuredFindDocumentsByPatientId

public void testSecuredFindDocumentsByPatientId()
                                         throws java.lang.Throwable
Find Documents Query by patientID over TLS. Corresponds to Connectathon 2006-2007 Test: 11741
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#Query_-_Testing_the_Document_Consumer
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 Registry Query Transaction

    Throws:
    java.lang.Throwable