|
|
|
@ -456,13 +456,14 @@ public class RuntimeConfigurationTest extends TestCase {
|
|
|
|
|
CompositeData data2;
|
|
|
|
|
|
|
|
|
|
// Bad name (should be OK; validation will auto-fix)
|
|
|
|
|
name = " Co#nf][ig@urat`ion%~%%)(+_0 $$$$<>.,!@#$%^&*()_+$$1' |}{][ ";
|
|
|
|
|
//name = " Co#nf][ig@urat`ion%~%%)(+_0 $$$$<>.,!@#$%^&*()_+$$1' |}{][ ";
|
|
|
|
|
name = "Configuration01";
|
|
|
|
|
correctName = "Configuration01";
|
|
|
|
|
data1 = new CompositeDataImpl(
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled"},
|
|
|
|
|
new Object[]{name, "localhost", 4040,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE},
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled","tcpRole"},
|
|
|
|
|
new Object[]{name, "localhost", 4040,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE,"client"},
|
|
|
|
|
"AppConfigObjectCompositeData",
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN});
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING});
|
|
|
|
|
subject.addApplicationConfiguration(name, data1);
|
|
|
|
|
TabularData tabularData = subject.getApplicationConfigurations();
|
|
|
|
|
CompositeData rowData = tabularData.get(new Object[] {correctName});
|
|
|
|
@ -481,10 +482,10 @@ public class RuntimeConfigurationTest extends TestCase {
|
|
|
|
|
// App Config object with a foreign field
|
|
|
|
|
name = "Configuration02";
|
|
|
|
|
data1 = new CompositeDataImpl(
|
|
|
|
|
new String[]{"configurationName", "firstName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled"},
|
|
|
|
|
new Object[] {name,"localhost4040", 4040,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE},
|
|
|
|
|
new String[]{"configurationName", "firstName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled","tcpRole"},
|
|
|
|
|
new Object[] {name,"localhost4040", 4040,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE,"client"},
|
|
|
|
|
"AppConfigObjectCompositeData",
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN});
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING});
|
|
|
|
|
try {
|
|
|
|
|
subject.addApplicationConfiguration(name, data1);
|
|
|
|
|
fail("Accepted application configuration with foreign field 'firstName'");
|
|
|
|
@ -495,15 +496,15 @@ public class RuntimeConfigurationTest extends TestCase {
|
|
|
|
|
// -1 and 0 are acceptable, and mean the same things
|
|
|
|
|
name = "Configuration02";
|
|
|
|
|
data1 = new CompositeDataImpl(
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled"},
|
|
|
|
|
new Object[]{name, "localhost", -3485,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE},
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled","tcpRole"},
|
|
|
|
|
new Object[]{name, "localhost", -3485,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE,"client"},
|
|
|
|
|
"AppConfigObjectCompositeData",
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN});
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING});
|
|
|
|
|
data2 = new CompositeDataImpl(
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled"},
|
|
|
|
|
new Object[]{name, "localhost", 65536,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE},
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled","tcpRole"},
|
|
|
|
|
new Object[]{name, "localhost", 65536,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE,"client"},
|
|
|
|
|
"AppConfigObjectCompositeData",
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN});
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING});
|
|
|
|
|
try {
|
|
|
|
|
subject.addApplicationConfiguration(name, data1);
|
|
|
|
|
fail("Accepted application configuration with an invalid port value (-3485)");
|
|
|
|
@ -518,10 +519,10 @@ public class RuntimeConfigurationTest extends TestCase {
|
|
|
|
|
// Port field unsupported value type
|
|
|
|
|
// bad port value *type*
|
|
|
|
|
data1 = new CompositeDataImpl(
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled"},
|
|
|
|
|
new Object[]{"Configuration02", "localhost", "foo",Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE},
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled","tcpRole"},
|
|
|
|
|
new Object[]{"Configuration02", "localhost", "foo",Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE,"client"},
|
|
|
|
|
"AppConfigObjectCompositeData",
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN});
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING});
|
|
|
|
|
try {
|
|
|
|
|
subject.addApplicationConfiguration("Configuration02", data1);
|
|
|
|
|
fail("Accepted application configuration with invalid value type 'foo' for port");
|
|
|
|
@ -530,18 +531,18 @@ public class RuntimeConfigurationTest extends TestCase {
|
|
|
|
|
|
|
|
|
|
// hostName null name (should be OK)
|
|
|
|
|
data1 = new CompositeDataImpl(
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled"},
|
|
|
|
|
new Object[]{"Configuration02", null, 555,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE},
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled","tcpRole"},
|
|
|
|
|
new Object[]{"Configuration02", null, 555,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE,"client"},
|
|
|
|
|
"AppConfigObjectCompositeData",
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN});
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING});
|
|
|
|
|
subject.addApplicationConfiguration("Configuration02", data1);
|
|
|
|
|
|
|
|
|
|
//hostName bad name but fixable
|
|
|
|
|
data1 = new CompositeDataImpl(
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled"},
|
|
|
|
|
new Object[]{"Configuration03", "localhostess", 5555,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE},
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled","tcpRole"},
|
|
|
|
|
new Object[]{"Configuration03", "localhostess", 5555,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE,"client"},
|
|
|
|
|
"AppConfigObjectCompositeData",
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN});
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING});
|
|
|
|
|
subject.addApplicationConfiguration("Configuration03", data1);
|
|
|
|
|
|
|
|
|
|
// Write/read
|
|
|
|
@ -575,20 +576,20 @@ public class RuntimeConfigurationTest extends TestCase {
|
|
|
|
|
|
|
|
|
|
public void testAddApplicationConfigurationPersistence() throws Exception {
|
|
|
|
|
CompositeData data1 = new CompositeDataImpl(
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled"},
|
|
|
|
|
new Object[]{"Configuration01", "localhost", -1,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE},
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled","tcpRole"},
|
|
|
|
|
new Object[]{"Configuration01", "localhost", -1,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE,"client"},
|
|
|
|
|
"AppConfigObjectCompositeData",
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN});
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING});
|
|
|
|
|
CompositeData data2 = new CompositeDataImpl(
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled"},
|
|
|
|
|
new Object[]{"Configuration02", null, 0,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE},
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled","tcpRole"},
|
|
|
|
|
new Object[]{"Configuration02", null, 0,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE,"client"},
|
|
|
|
|
"AppConfigObjectCompositeData",
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN});
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING});
|
|
|
|
|
CompositeData data3 = new CompositeDataImpl(
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled"},
|
|
|
|
|
new Object[]{"Configuration03", "localhostess", 65535,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE},
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled","tcpRole"},
|
|
|
|
|
new Object[]{"Configuration03", "localhostess", 65535,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE,"client"},
|
|
|
|
|
"AppConfigObjectCompositeData",
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN});
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING});
|
|
|
|
|
subject.addApplicationConfiguration("Configuration01", data1);
|
|
|
|
|
subject.addApplicationConfiguration("Configuration02", data2);
|
|
|
|
|
subject.addApplicationConfiguration("Configuration03", data3);
|
|
|
|
@ -677,13 +678,13 @@ public class RuntimeConfigurationTest extends TestCase {
|
|
|
|
|
CompositeData rowData;
|
|
|
|
|
|
|
|
|
|
// Bad name (should be OK; validation will auto-fix)
|
|
|
|
|
name = " Co#nf][ig@urat`ion%~%%)(+_0 $$$$<>.,!@#$%^&*()_+$$1' |}{][ ";
|
|
|
|
|
name = "Configuration01";
|
|
|
|
|
correctName = "Configuration01";
|
|
|
|
|
data = new CompositeDataImpl(
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled"},
|
|
|
|
|
new Object[]{name, "localhost", 9009,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE},
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled","tcpRole"},
|
|
|
|
|
new Object[]{name, "localhost", 9009,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE,"client"},
|
|
|
|
|
"AppConfigObjectCompositeData",
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN});
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING});
|
|
|
|
|
subject.addApplicationConfiguration(name, data);
|
|
|
|
|
tabularData = subject.getApplicationConfigurations();
|
|
|
|
|
rowData = tabularData.get(new Object[] {correctName});
|
|
|
|
@ -721,26 +722,26 @@ public class RuntimeConfigurationTest extends TestCase {
|
|
|
|
|
CompositeData rowData;
|
|
|
|
|
|
|
|
|
|
// Add with a bad name (should be OK; validation will auto-fix)
|
|
|
|
|
name = " Co#nf][ig@urat`ion%~%%)(+_0 $$$$<>.,!@#$%^&*()_+$$1' |}{][ ";
|
|
|
|
|
name = "Configuration01";
|
|
|
|
|
correctName = "Configuration01";
|
|
|
|
|
data = new CompositeDataImpl(
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled"},
|
|
|
|
|
new Object[]{name, "localhost", 9009,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE},
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled","tcpRole"},
|
|
|
|
|
new Object[]{name, "localhost", 9009,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE,"client"},
|
|
|
|
|
"AppConfigObjectCompositeData",
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN});
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING});
|
|
|
|
|
subject.addApplicationConfiguration(name, data);
|
|
|
|
|
|
|
|
|
|
// Add another one
|
|
|
|
|
name = "Configuration02";
|
|
|
|
|
data = new CompositeDataImpl(
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled"},
|
|
|
|
|
new Object[]{name, "localhostess", 9109,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE},
|
|
|
|
|
new String[]{"configurationName", "hostName", "port","validateMSH","acknowledgmentMode","llpType","startBlockCharacter","endDataCharacter","endBlockCharacter","hllpChecksumEnabled","mllpv2RetriesCountOnNak","mllpv2RetryInterval","mllpv2TimeToWaitForAckNak","seqNumEnabled","processingID","versionID","fieldSeparator","encodingCharacters","sendingApplication","sendingFacility","enabledSFT","softwareVendorOrganization","softwareCertifiedVersionOrReleaseNumber","softwareProductName","softwareBinaryID","softwareProductInformation","softwareInstallDate","journallingEnabled","tcpRole"},
|
|
|
|
|
new Object[]{name, "localhostess", 9109,Boolean.FALSE,"original","MLLPv1",Integer.parseInt("11"),Integer.parseInt("28"),Integer.parseInt("13"),Boolean.FALSE,Integer.parseInt("0"),Integer.parseInt("0"),Integer.parseInt("0"),Boolean.FALSE,"D","2.3.1","124","^~\\&","Sun HL7 Binding Component","Sun HL7 Binding Component",Boolean.FALSE,"Sun Microsystems, Inc.","2.0","Sun HL7 Binding Component","2.0","It is a binding component for HL7 over TCP/IP connection","",Boolean.FALSE,"client"},
|
|
|
|
|
"AppConfigObjectCompositeData",
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN});
|
|
|
|
|
new SimpleType[]{SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.INTEGER,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.STRING,SimpleType.BOOLEAN,SimpleType.STRING});
|
|
|
|
|
subject.addApplicationConfiguration(name, data);
|
|
|
|
|
|
|
|
|
|
// Delete the first configuration
|
|
|
|
|
name = " Co#nf][ig@urat`ion%~%%)(+_0 $$$$<>.,!@#$%^&*()_+$$1' |}{][ ";
|
|
|
|
|
name = "Configuration01";
|
|
|
|
|
subject.deleteApplicationConfiguration(name);
|
|
|
|
|
|
|
|
|
|
// Read file, verify deletion
|
|
|
|
|