Examples of addHeaderAttribute()


Examples of de.bamberg.ha.api.messaging.PropertiesMessageImpl.addHeaderAttribute()

 
  @Test
  public void testSimpleRouting() throws Exception {
     SimplePropertyMessageActionRouter router=new  SimplePropertyMessageActionRouter( registryMock );
     PropertiesMessageImpl msg=new PropertiesMessageImpl();
     msg.addHeaderAttribute(MessageHeader.ENDPOINT.name(), TESTSERVICE+":call");
     router.route(msg);
     assertTrue(registryCalled);
     assertTrue(serviceCalled);
  }
 
View Full Code Here

Examples of de.bamberg.ha.api.messaging.PropertiesMessageImpl.addHeaderAttribute()

 
  @Test (expected=MessageRoutingException.class)
  public void testNoServiceRegistry() throws Exception {
     SimplePropertyMessageActionRouter router=new  SimplePropertyMessageActionRouter( null );
     PropertiesMessageImpl msg=new PropertiesMessageImpl();
     msg.addHeaderAttribute(MessageHeader.ENDPOINT.name(), TESTSERVICE+":call");
     router.route(msg);
  }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.