java - How to check if endpoint was used in a munit test -


I am trying to write the malfunction test (in Java) and I would like to check whether the message passed (or this case ), Through a specific outbound-endpoint, because the flow is routing and message can pass through different people depending on the conditions?

My setup is actually using 2 different flow files, a flow logic that uses common end points such as

    

and then the actual end address definition such as

    

The following Java code works

  verifyCallOfMessageProcessor ( "Outbound-Endpoint"). Time (1);  

However I want to be able to specify the specific name of the endpoint I have tried the following but none

) withValue ("out.endpoint"). Time (1); .. VerifyCallOfMessageProcessor ("(" name ") with Verify callout message processor (" Outbound-Endpoint "). Outbound-endpoint ") withAttributes (. ("Out") withValue ("out.endpoint") times (1); VerifyCallOfMessageProcessor ("End Point") withAttributes (. Attribute ("name") withValue ("out.endpoint") times (1 ); VerifyCallOfMessageProcessor ("End Point") withAttributes (. Attribute ("Ref") withValue ("out.endpoint")) Bar (1);

All 4 Does anyone have any significance for me? Does anyone know how to accomplish this (possibly using xml otherwise xml)?

This should be the method (with "out") withValue ("out.endpoint"): < / P>

  Verify the namespace of the offline processor ("Outbound-Endpoint") ("VM"). WithAttributes (attribute ("name").)) Times (1).  

Check that the namespace in the attribute name is "Doctor.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -