" <node id='frodo' stratum='1' timestamp='9408630538' dirtyRead='false'/>\n" +
" <node id='heron' stratum='0' timestamp='9408630564'/>\n" +
" </route>\n" +
"</qos>\n";
PublishQosServer qos = new PublishQosServer(new org.xmlBlaster.engine.ServerScope(), xml);
assertEquals("", true, qos.isSubscribable());
assertEquals("", true, qos.isPtp());
assertEquals("", false, qos.isVolatile());
assertEquals("", true, qos.isPersistent());
assertEquals("", false, qos.isForceUpdate());
assertEquals("", false, qos.isReadonly());
assertEquals("", "Gesa", qos.getSender().getLoginName());
assertEquals("", 3, qos.getRouteNodes().length);
assertEquals("", 2, qos.getRouteNodes()[0].getStratum());
assertEquals("", 0, qos.getRouteNodes()[2].getStratum());
assertEquals("", 9408630500L, qos.getRouteNodes()[0].getTimestamp().getTimestamp());
assertEquals("", true, qos.getRouteNodes()[0].getDirtyRead());
assertEquals("", false, qos.getRouteNodes()[1].getDirtyRead());
assertEquals("", false, qos.getRouteNodes()[2].getDirtyRead());
assertEquals("", PriorityEnum.HIGH_PRIORITY, qos.getPriority());
assertEquals("", false, qos.isFromPersistenceStore());
Timestamp timestamp = new Timestamp();
assertTrue("timestamp.getTimestamp()="+timestamp.getTimestamp()+" qos.getRcvTimestamp().getTimestamp()="+qos.getRcvTimestamp().getTimestamp() , timestamp.getTimestamp() > qos.getRcvTimestamp().getTimestamp());
assertTrue("timestamp.getTimestamp()="+timestamp.getTimestamp()+" qos.getRcvTimestamp().getTimestamp()="+qos.getRcvTimestamp().getTimestamp() , timestamp.getTimestamp() < (qos.getRcvTimestamp().getTimestamp()+10000000));
assertEquals("", 2, qos.getDestinations().size());
assertEquals("", true, ((Destination)qos.getDestinations().get(0)).forceQueuing());
}
catch (XmlBlasterException e) {
fail("testPublishQosServer failed: " + e.toString());
}