Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected FlighStatusMsgType createFlightStatusMessage(AirborneStatus message) {
- return FlightObjectUtils.createFlightStatusMessage(message);
- }
- protected String marschal(FlighStatusMsgType message) throws JAXBException {
- return XmlUtils.marshal(flightStatusMessage);
- }
- public void notify(final AirborneStatus message) {
- final FlighStatusMsgType flightStatusMsgType = createFlightStatusMessage(message);
- try {
- final String xml = marschal(flightStatusMsgType);
- AirborneService.LOG.debug("publishing XML: " + xml);
- this.topicAirborneStatus(xml);
- } catch(final JAXBException e) {
- AirborneService.LOG.warn("cxcx");
- }
- }
- doThrow(new JAXBException()).when(spy).marshal(any(FlighStatusMsgType.class));
- verify(spy, never()).topicAirborneStatus(any(String.class));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement