« Return to Thread: Re: LoanBroker ESB test failing...

RE: Re: LoanBroker ESB test failing...

by ARGCRP-CARLSON, TRAVIS :: Rate this Message:

Reply to Author | View in Thread

> How does this race manifest itself?

It fails on the following line:

    public void testSingleLoanRequest() throws Exception {
        MuleClient client = new MuleClient();
        Customer c = new Customer("Ross Mason", 1234);
        CustomerQuoteRequest request = new CustomerQuoteRequest(c,
100000, 48);
        UMOMessage result = client.send("vm://loan.broker.requests",
request, null);
        assertNotNull(result);
        assertFalse(result.getPayload() instanceof NullPayload);
>>>>>>> assertTrue(result.getPayload() instanceof LoanQuote);
        LoanQuote quote = (LoanQuote)result.getPayload();
        assertTrue(quote.getInterestRate() > 0);
    }

Investigating further, I found that the sporadic failure is due to a
LoanQuoteRequest being returned instead of a LoanQuote.  I added a
PayloadTypeFilter to the config files and am no longer able to reproduce
the failure.  

By studying the config, I can't figure out why a LoanQuoteRequest would
get placed in the "LoanQuotes" queue (jms://esb.loan.quotes), but the
filter is harmless at any rate.

Let me know if anyone has any more insight into this.

Travis


Esta comunicacion es confidencial y puede contener informacion cuya divulgacion este restringida por la ley o en virtud de obligaciones de confidencialidad asumidas por acuerdos escritos. Si usted no es su destinatario, por favor advierta que cualquier divulgacion, distribucion o copia de esta comunicacion le esta estrictamente prohibida. Si usted recibio este mail por error, agradeceremos tenga a bien informar esa circunstancia al remitente mediante comunicacion a la direccion de e-mail o al numero telefonico : (5411) 5170-0000, y le solicitamos asimismo que por favor proceda a borrarlo de su computadora. Por favor no copie ni use la informacion contenida en este mail para ningun proposito y no divulgue su contenido a ninguna otra persona.


This communication is confidential and may contain information that is exempt from disclosure by law or pursuant to confidentiality obligations assumed by written agreement. If you are not the intended recipient, please note that any dissemination, distribution, or copying of this communication is strictly prohibited. If you receive this e-mail in error, please notify the sender immediately at the electronic mail address or phone number : (5411) 5170-0000  and delete the information from your computer. Please do not copy or use it for any purpose nor disclose its contents to any other person.

 


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

 « Return to Thread: Re: LoanBroker ESB test failing...