245246247248249250251252253254255
final String propertyName = MuleProperties.MULE_METHOD_PROPERTY; RequestContext.getEventContext().getMessage().setOutboundProperty(propertyName, methodName); try { resolverSet.invoke(new Kiwi(), RequestContext.getEventContext()); fail("no such method on service"); } catch (EntryPointNotFoundException e) { // expected
268269270271272273274275276277278
FruitBowl bowl = new FruitBowl(); assertFalse(bowl.hasApple()); assertFalse(bowl.hasBanana()); resolverSet.invoke(bowl, RequestContext.getEventContext()); assertTrue(bowl.hasApple()); assertTrue(bowl.hasBanana()); }
286287288289290291292293294295296
309310311312313314315316317318319
FruitBowl bowl = new FruitBowl(); assertFalse(bowl.hasApple()); assertFalse(bowl.hasBanana()); resolverSet.invoke(bowl, RequestContext.getEventContext()); assertTrue(bowl.hasApple()); assertTrue(bowl.hasBanana()); } }