Receive the datas
Inheritance: Org.Openengsb.Loom.CSharp.Bridge.Implementation.Communication.Jms.JmsPort, IIncomingPort
Ejemplo n.º 1
0
        public void TestACustomCreatedExceptionHandlerWhichReturnsAValueAsResultThatGetsInvokedWithIcomingPort()
        {
            string destination = TcpUrlOpenEngSB + tmpGuid.ToString();

            IIncomingPort inPort = new JmsIncomingPort(destination, new TestCustomExceptionHandler(), ConnectorId);
            inPort.Close();

            Assert.AreEqual<String>(inPort.Receive(), "TestCase");
        }
Ejemplo n.º 2
0
        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
            {
            }
        }