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

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

public class IBMLswin10StoredQueryTest
extends junit.framework.TestCase

JUNIT tests for the consumer. Currently set up to test against IBM LSWIN10 registry: http://lswin10.dfw.ibm.com:9080/XDSRegistryWS/services/XDSRegistry

Author:
Sarah Knoop

Field Summary
static java.lang.String IBM_ARR
           
static java.lang.String LSWIN10
           
static java.lang.String LSWIN10_SECURED
           
 
Constructor Summary
IBMLswin10StoredQueryTest()
           
 
Method Summary
 void testAudit()
          Tests the Audit record generation of the XDS Consumer for the Stored Query Transaction
 void testFindDocuments()
          Find Documents Stored Query Corresponds to Connectathon 2006-2007 Test: 11936
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#Stored_Query_-_Testing_the_Document_Consumer
 void testFindDocumentsByPatientId()
          Find Documents Stored Query by patientID Corresponds to Connectathon 2006-2007 Test: 11936
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#Stored_Query_-_Testing_the_Document_Consumer
 void testFindDocumentsParameters()
          Test FindDocumentsQuery interface with error cases
 void testGetDocumentByUUID()
          Get Documents Stored Query by document entryUUID Corresponds to Connectathon 2006-2007 Test: 11940
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#Stored_Query_-_Testing_the_Document_Consumer
 void testGetDocumentsByUniqueId()
          Get Documents Stored Query by document uniqueId Corresponds to Connectathon 2006-2007 Test: 11940
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#Stored_Query_-_Testing_the_Document_Consumer
 void testGetDocumentsParameters()
          Test GetDocumentsQuery interface with error cases
 void testInvokeStoredQueryParameters()
          Test the stored query interface with error cases
 void testSecuredFindDocumentsByPatientId()
          Find Documents Stored Query by patientID over TLS.
 void testStoredQueryForLeafClass()
          Execute Get Documents Stored Query in which the return type requested is "LeafClass", uniqueId is '1.3.6.1.4.1.21367.2005.3.999.671' Connectathon 2006-2007 Test: 11950
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11950
 void testStoredQueryForObjectRefs()
          Execute Find Documents Stored Query in which the return type requested is "ObjectRefs", document status is "Approved" and the patient ID is '74282978^^^&1.3.6.1.4.1.21367.2005.1.1&ISO' Connectathon 2006-2007 Test: 11949
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11949
 
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

IBMLswin10StoredQueryTest

public IBMLswin10StoredQueryTest()
Method Detail

testInvokeStoredQueryParameters

public void testInvokeStoredQueryParameters()
                                     throws java.lang.Throwable
Test the stored 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

testStoredQueryForObjectRefs

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

Throws:
java.lang.Throwable

testStoredQueryForLeafClass

public void testStoredQueryForLeafClass()
                                 throws java.lang.Throwable
Execute Get Documents Stored Query in which the return type requested is "LeafClass", uniqueId is '1.3.6.1.4.1.21367.2005.3.999.671' Connectathon 2006-2007 Test: 11950
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11950

Throws:
java.lang.Throwable

testGetDocumentByUUID

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

Throws:
java.lang.Throwable

testGetDocumentsByUniqueId

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

Throws:
java.lang.Throwable

testFindDocumentsByPatientId

public void testFindDocumentsByPatientId()
                                  throws java.lang.Throwable
Find Documents Stored Query by patientID Corresponds to Connectathon 2006-2007 Test: 11936
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#Stored_Query_-_Testing_the_Document_Consumer

Throws:
java.lang.Throwable

testFindDocuments

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

Throws:
java.lang.Throwable

testSecuredFindDocumentsByPatientId

public void testSecuredFindDocumentsByPatientId()
                                         throws java.lang.Throwable
Find Documents Stored 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#Stored_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 Stored Query Transaction

    Throws:
    java.lang.Throwable