@Ignore // Move this test to Integration test suite @Test public void NoMatch() throws Exception { TopicConfigurationManager topicConfigurationManager = TopicConfigurationManager.getInstance(); TopicConfigurationEntry topicConfigEntry; Element topic = XmlUtility.convertXmlToElement( "<wsnt:Topic xmlns:wsnt=\"http://docs.oasis-open.org/wsn/b-2\" xmlns:n=\"http://www.hhs.gov/healthit/nhin\" Dialect=\"http://doc.oasis-open.org/wsn/t-1/TopicExpression/Simple\">NoTopic</wsnt:Topic>"); topicConfigEntry = topicConfigurationManager.getTopicConfiguration(topic); assertNull(topicConfigEntry); }
private TopicConfigurationManager topicConfigurationManagerFactory() { TopicConfigurationManager topicConfigurationManager = TopicConfigurationManager.getInstance(); TopicConfigurationEntry topicConfigEntry; // topicConfigEntry = new TopicConfiguration(); // topicConfigEntry.setTopic("<wsnt:Topic xmlns:wsnt=\"http://docs.oasis-open.org/wsn/b-2\" // xmlns:nhin=\"http://www.hhs.gov/healthit/nhin\" // Dialect=\"http://doc.oasis-open.org/wsn/t-1/TopicExpression/Simple\">nhin:SomeOtherTopic1</wsnt:Topic>"); // topicConfigEntry.setSupported(false); // topicConfigurationManager.AddEntry(topicConfigEntry); // // topicConfigEntry = new TopicConfiguration(); // topicConfigEntry.setTopic("<wsnt:Topic xmlns:wsnt=\"http://docs.oasis-open.org/wsn/b-2\" // xmlns:nhin=\"http://www.hhs.gov/healthit/nhin\" // Dialect=\"http://doc.oasis-open.org/wsn/t-1/TopicExpression/Simple\">nhin:SomeTopic</wsnt:Topic>"); // topicConfigEntry.setSupported(true); // topicConfigurationManager.AddEntry(topicConfigEntry); // // topicConfigEntry = new TopicConfiguration(); // topicConfigEntry.setTopic("<wsnt:Topic xmlns:wsnt=\"http://docs.oasis-open.org/wsn/b-2\" // xmlns:nhin=\"http://www.hhs.gov/healthit/nhin\" // Dialect=\"http://doc.oasis-open.org/wsn/t-1/TopicExpression/Simple\">nhin:PatientCentricTopic</wsnt:Topic>"); // topicConfigEntry.setSupported(true); // topicConfigEntry.setPatientCentric(true); // topicConfigEntry.setPatientIdentifierFormat("HL7Encoded"); // topicConfigEntry.setPatientIdentifierNotifyLocation("//myxpathstatement"); // topicConfigEntry.setPatientIdentifierSubscribeLocation("//myxpathotherstatement"); // // topicConfigurationManager.AddEntry(topicConfigEntry); // // topicConfigEntry = new TopicConfiguration(); // topicConfigEntry.setTopic("<wsnt:Topic xmlns:wsnt=\"http://docs.oasis-open.org/wsn/b-2\" // xmlns:nhin=\"http://www.hhs.gov/healthit/nhin\" // Dialect=\"http://doc.oasis-open.org/wsn/t-1/TopicExpression/Simple\">nhin:SomeOtherTopic2</wsnt:Topic>"); // topicConfigEntry.setSupported(false); // topicConfigurationManager.AddEntry(topicConfigEntry); return topicConfigurationManager; }