public void TestACustomCreatedExceptionHandlerWhichReturnsAValueAsResultThatGetsInvokedWithIcomingPort() { string destination = TcpUrlOpenEngSB + tmpGuid.ToString(); IIncomingPort inPort = new JmsIncomingPort(destination, new TestCustomExceptionHandler(), ConnectorId); inPort.Close(); Assert.AreEqual<String>(inPort.Receive(), "TestCase"); }
public void TestJmsPortWithWrongUrlParameter() { string destination = "Wrong?" + tmpGuid.ToString(); // The exceptHandler returns null and so the is connector is not stored try { JmsPort outPort = new JmsIncomingPort(destination, new TestCustomExceptionHandler(), ConnectorId); Assert.Fail(); } catch { } }