inb.addToRecentOpened( "XX",
"hey" );
assertEquals( res.size() + 1,
inb.loadRecentOpened().size() );
InboxEntry firstOld = inb.loadRecentOpened().get( 0 );
assertEquals( "A0",
firstOld.assetUUID );
Thread.sleep( 30 );
//shouldn't add another one...
inb.addToRecentOpened( "A0",
"hey22" );
List<InboxEntry> finalList = inb.loadRecentOpened();
assertEquals( res.size() + 1,
finalList.size() );
assertEquals( "A1",
finalList.get( 0 ).assetUUID );
InboxEntry lastEntry = finalList.get( finalList.size() - 1 );
assertEquals( "A0",
lastEntry.assetUUID );
assertTrue( lastEntry.timestamp > firstOld.timestamp );