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

Examples of com.semagia.atomico.server.feed.impl.IFragmentsFeed.IFragmentEntry


        final String sid = "http://psi.semagia.com/subject-identifier";
        final IResource res = new Resource(sid);
        final IFragmentInfo fragInfo = new FragmentInfo(id, title, updated, mt, "fragId", res);
        feed.addEntry(fragInfo, link);
        assertEquals(1, feed.getEntries().size());
        final IFragmentEntry 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.getResources().size());
        assertEquals(res, entry.getResources().iterator().next());
        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.IFragmentsFeed.IFragmentEntry

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.