org.eclipse.ohf.ihe.xds.source.test
Class SubmitTest

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

public class SubmitTest
extends junit.framework.TestCase

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

Author:
Sarah Knoop

Field Summary
static java.lang.String IBM_ARR
           
static java.lang.String NIST
           
static java.lang.String NIST_SECURED
           
 
Constructor Summary
SubmitTest()
           
 
Method Summary
 void test1Submission()
          TEST 1: Submission test using "pre-cooked" metadata.
 void test2Submission()
          TEST 2: Submission test with automatic metadata extraction from CDA R2 Data for this test is in ./resources/sample_files/test2/
Corresponds to Connectathon 2006-2007 Test: 11746
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11746
 void testAudit()
          Tests the Audit record generation of the XDS Source for the Provide and Register Document Set Transaction
Data for this test is in ./resources/sample_files/test2/
 void testReplace()
          TEST 4: Document Replacement.
 void testSecureSubmission()
          TEST 3: SECURE Submission test using "pre-cooked" metadata.
 
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

SubmitTest

public SubmitTest()
Method Detail

test1Submission

public void test1Submission()
                     throws java.lang.Throwable
TEST 1: Submission test using "pre-cooked" metadata. Data for this test is in ./resources/sample_files/test1/
Corresponds to Connectathon 2006-2007 Test: 11746
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11746

Throws:
java.lang.Throwable

test2Submission

public void test2Submission()
                     throws java.lang.Throwable
TEST 2: Submission test with automatic metadata extraction from CDA R2 Data for this test is in ./resources/sample_files/test2/
Corresponds to Connectathon 2006-2007 Test: 11746
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11746

Throws:
java.lang.Throwable

testSecureSubmission

public void testSecureSubmission()
                          throws java.lang.Throwable
TEST 3: SECURE Submission test using "pre-cooked" metadata. Data for this test is in ./resources/sample_files/test1/
Corresponds to Connectathon 2006-2007 Test: 11743
http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11743
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

    testReplace

    public void testReplace()
                     throws java.lang.Throwable
    TEST 4: Document Replacement. Uses automatic metadata extraction from CDA R2 Data for this test is in ./resources/sample_files/replaceTest/
    Corresponds to Connectathon 2006-2007 Test: 11748
    http://hcxw2k1.nist.gov/wiki/index.php/NIST_XDS_Test_Kit_2006-2007_Test_Descriptions#11748

    Throws:
    java.lang.Throwable

    testAudit

    public void testAudit()
                   throws java.lang.Throwable
    Tests the Audit record generation of the XDS Source for the Provide and Register Document Set Transaction
    Data for this test is in ./resources/sample_files/test2/

    Throws:
    java.lang.Throwable