Package org.apache.rave.portal.model

Examples of org.apache.rave.portal.model.MongoDbActivityStreamsEntry


        verify(template);
    }

    @Test
    public void getById() {
        MongoDbActivityStreamsEntry entry = new MongoDbActivityStreamsEntry();
        entry.setId(ID);
        expect(template.findById(ID, ENTITY_CLASS, ACTIVITIES)).andReturn(entry);
        replay(template);

        ActivityStreamsEntry result = repository.get(ID);
        assertThat(result, is(sameInstance((ActivityStreamsEntry)entry)));
View Full Code Here


    }

    @Override
    public MongoDbActivityStreamsEntry convert(ActivityStreamsEntry source) {
        if (source != null) {
            MongoDbActivityStreamsEntry converted = new MongoDbActivityStreamsEntry();
            converted.setActor(convert(source.getActor()));
            converted.setObject(convert(source.getObject()));
            converted.setGenerator(convert(source.getGenerator()));
            converted.setIcon(convert(source.getIcon()));
            converted.setProvider(convert(source.getProvider()));
            converted.setProvider(convert(source.getProvider()));
            converted.setTarget(convert(source.getTarget()));
            updateSimpleProperties(source, converted);

            return converted;
        }
        return null;
View Full Code Here

TOP

Related Classes of org.apache.rave.portal.model.MongoDbActivityStreamsEntry

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.