File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
services/src/test/java/org/fao/geonet/api/anonymousAccessLink Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1616import static org .junit .Assert .assertEquals ;
1717import static org .junit .Assert .assertNotNull ;
1818import static org .junit .Assert .assertNull ;
19+ import static org .junit .Assert .assertTrue ;
1920
2021public class AnonymousAccessLinkServiceTest extends AbstractServiceIntegrationTest {
2122
@@ -69,7 +70,7 @@ public void listAnonymousAccessLinkWithDocs() throws Exception {
6970 assertEquals ("Abstract {uuid}" ,
7071 ((HashMap )((HashMap )linkForMd1 .getGetResultSource ()).get ("resourceAbstractObject" )).get ("default" ));
7172 assertEquals ("admin admin" , ((HashMap )linkForMd1 .getGetResultSource ()).get ("recordOwner" ));
72- assertEquals ( "2012-01-18T14:04:43.000Z" , ((HashMap )linkForMd1 .getGetResultSource ()).get ("dateStamp" ));
73+ assertTrue ( ((HashMap )linkForMd1 .getGetResultSource ()).get ("dateStamp" ). toString (). startsWith ( "2012-01-18 " ));
7374 assertNull (linkForMd2 .getGetResultSource ());
7475 assertNotNull (linkForMd3 .getGetResultSource ());
7576 assertEquals ("Title" ,
You can’t perform that action at this time.
0 commit comments