Portlets pp = (Portlets)itt.next();
System.out.println(" PORTLETS %%% " + pp.getId());
if ( pp.getId().equals("02"))
{
foundPortlet02 = true;
MetaInfo pp02MetaInfo = pp.getMetaInfo();
assertNotNull( "Portlet ID 02 has metaInfo", pp02MetaInfo);
assertEquals( "Portlet ID 02 Title", "Portlet Title", pp02MetaInfo.getTitle());
assertEquals( "Portlet ID 02 Title", "Portlet Description", pp02MetaInfo.getDescription());
assertEquals( "Portlet ID 02 Title", "Portlet Image", pp02MetaInfo.getImage());
Iterator pp02itt = pp.getEntriesIterator();
while (pp02itt.hasNext())
{
Entry pp02Entry = (Entry) pp02itt.next();
assertNotNull( "Portlet Id 02 has entry", pp02Entry);
if (pp02Entry.getId().equals("07"))
{
foundEntry07 = true;
MetaInfo entry07MetaInfo = pp02Entry.getMetaInfo();
assertNotNull( "Entry ID 07 has metaInfo", entry07MetaInfo);
assertEquals( "Entry ID 07 Title", "Entry Title", entry07MetaInfo.getTitle());
assertEquals( "Entry ID 07 Title", "Entry Description", entry07MetaInfo.getDescription());
assertEquals( "Entry ID 07 Title", "Entry Image", entry07MetaInfo.getImage());
}
}
}
}
assertTrue( "Tested Portlet 02", foundPortlet02);