Collection entries = sample.allEntries();
assertEquals((long)entries.size(),(long)2);
boolean first = true;
for(Iterator it = entries.iterator();it.hasNext();)
{
NewEntry entry = (NewEntry)it.next();
assertEquals("www.xerox.com",entry.getProperty(UrlConfig.class,
UrlConfig.DOMAIN));
if(first)
{
assertEquals("index.html",entry.getProperty(UrlConfig.class,
UrlConfig.PATH));
}
else
{
assertEquals(UrlConfig.POST,entry.getProperty(UrlConfig.class,
UrlConfig.METHOD));
}
first = false;
}
}