subscribeQos.addAccessFilter(new AccessFilterQos(glob, "ContentLenFilter", "1.0", new Query(glob, "800")));
subscribeQos.addAccessFilter(new AccessFilterQos(glob, "ContentLenFilter2", "3.2", new Query(glob, "a<10")));
subscribeQos.setPersistent(true);
System.out.println("SubscribeQos: " + subscribeQos.toXml());
QueryQosData qos = factory.readObject(subscribeQos.toXml());
assertEquals("", false, qos.getWantContent());
assertEquals("", "MyOwnSentSubscribeId", qos.getSubscriptionId());
assertEquals("", 33, qos.getHistoryQos().getNumEntries());
assertEquals("", false, qos.getHistoryQos().getNewestFirst());
AccessFilterQos[] filterArr = qos.getAccessFilterArr();
assertEquals("", 2, filterArr.length);
assertEquals("", "ContentLenFilter", filterArr[0].getType());
assertEquals("", "1.0", filterArr[0].getVersion());
assertEquals("", "800", filterArr[0].getQuery().toString());
assertEquals("", "ContentLenFilter2", filterArr[1].getType());
assertEquals("", "3.2", filterArr[1].getVersion());
assertEquals("", "a<10", filterArr[1].getQuery().toString());
assertEquals("", true, qos.getPersistentProp().getValue());
}
catch (Throwable e) {
System.out.println("Test failed: " + e.toString());
}
System.out.println("***QueryQosFactoryTest: SubscribeQos [SUCCESS]");