Package com.semagia.atomico.server.dm.impl

Examples of com.semagia.atomico.server.dm.impl.SnapshotInfo


        final URI link = URI.create(linkAdr);
        final String id = "http://www.semagia.com/test";
        final String title = "title";
        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());
View Full Code Here


        }
        final String id = "http://www.semagia.com/test";
        final String title = "title";
        final long updated = now();
        final MediaType mt = MediaType.ATOM_XML;
        final ISnapshotInfo snapInfo = new SnapshotInfo(id, title, updated, mt, "snapId");
        try {
            feed.addEntry(snapInfo, null);
            fail("feed.addEntry(info, null) is illegal");
        }
        catch (IllegalArgumentException ex) {
View Full Code Here

TOP

Related Classes of com.semagia.atomico.server.dm.impl.SnapshotInfo

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.