Package org.apache.shindig.social.opensocial.model

Examples of org.apache.shindig.social.opensocial.model.MediaLink


    }

    @Test
    public void testConvertMediaLink()  {
        MediaLink entry = conversionUtilTest.convert(activityStreamsMediaLink);

        assertThat(entry.getHeight(), is(equalTo(activityStreamsMediaLink.getHeight())));
        assertThat(entry.getDuration(), is(equalTo(activityStreamsMediaLink.getDuration())));
        assertThat(entry.getWidth(), is(equalTo(activityStreamsMediaLink.getWidth())));
        assertThat(entry.getUrl(), is(equalTo(activityStreamsMediaLink.getUrl())));

        ActivityStreamsMediaLink reconverted = conversionUtilTest.convert(entry)    ;

        assertThat(entry.getHeight(), is(equalTo(reconverted.getHeight())));
        assertThat(entry.getDuration(), is(equalTo(reconverted.getDuration())));
        assertThat(entry.getWidth(), is(equalTo(reconverted.getWidth())));
        assertThat(entry.getUrl(), is(equalTo(reconverted.getUrl())));


    }
View Full Code Here


    }

    @Test
    public void testConvertMediaLink()  {
        MediaLink entry = conversionUtilTest.convert(activityStreamsMediaLink);

        assertThat(entry.getHeight(), is(equalTo(activityStreamsMediaLink.getHeight())));
        assertThat(entry.getDuration(), is(equalTo(activityStreamsMediaLink.getDuration())));
        assertThat(entry.getWidth(), is(equalTo(activityStreamsMediaLink.getWidth())));
        assertThat(entry.getUrl(), is(equalTo(activityStreamsMediaLink.getUrl())));

        ActivityStreamsMediaLink reconverted = conversionUtilTest.convert(entry)    ;

        assertThat(entry.getHeight(), is(equalTo(reconverted.getHeight())));
        assertThat(entry.getDuration(), is(equalTo(reconverted.getDuration())));
        assertThat(entry.getWidth(), is(equalTo(reconverted.getWidth())));
        assertThat(entry.getUrl(), is(equalTo(reconverted.getUrl())));


    }
View Full Code Here

TOP

Related Classes of org.apache.shindig.social.opensocial.model.MediaLink

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.