Package com.semagia.atomico.server.feed.impl.ISnapshotsFeed

Examples of com.semagia.atomico.server.feed.impl.ISnapshotsFeed.ISnapshotEntry


        final long updated = now();
        final MediaType mt = MediaType.ATOM_XML;
        final ISnapshotInfo snapInfo = new SnapshotInfo(id, title, updated, mt, "snapId");
        feed.addEntry(snapInfo, link);
        assertEquals(1, feed.getEntries().size());
        final ISnapshotEntry entry = feed.getEntries().iterator().next();
        assertNotNull(entry);
        assertEquals(id, entry.getId());
        assertEquals(title, entry.getTitle());
        assertEquals(linkAdr, entry.getLink());
        assertEquals(updated, entry.getUpdated());
        assertEquals(1, entry.getMediaTypes().size());
        assertEquals(mt, entry.getMediaTypes().iterator().next());
    }
View Full Code Here

TOP

Related Classes of com.semagia.atomico.server.feed.impl.ISnapshotsFeed.ISnapshotEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.