Examples of Contributor


Examples of de.ailis.jollada.model.Contributor

     */

    @Test
    public void testHashCode() throws URISyntaxException
    {
        final Contributor contributor1 = new Contributor("AUTHOR", "EMAIL",
            new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT", new URI(
                "SOURCE"));
        final Contributor contributor2 = new Contributor("AUTHOR", "EMAIL",
            new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT", new URI(
                "SOURCE"));
        assertEquals(contributor1.hashCode(), contributor2.hashCode());
        assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR2",
            "EMAIL", new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT",
            new URI("SOURCE")).hashCode()));
        assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
            "EMAIL2", new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT",
            new URI("SOURCE")).hashCode()));
        assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
            "EMAIL", new URI("WEBSITE2"), "TOOL", "COMMENTS", "COPYRIGHT",
            new URI("SOURCE")).hashCode()));
        assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
            "EMAIL", new URI("WEBSITE"), "TOOL2", "COMMENTS", "COPYRIGHT",
            new URI("SOURCE")).hashCode()));
        assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
            "EMAIL", new URI("WEBSITE"), "TOOL", "COMMENTS2", "COPYRIGHT",
            new URI("SOURCE")).hashCode()));
        assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
            "EMAIL", new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT2",
            new URI("SOURCE")).hashCode()));
        assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
            "EMAIL", new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT",
            new URI("SOURCE2")).hashCode()));
        assertThat(contributor1.hashCode(), not(new Contributor(null, "EMAIL",
            new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT", new URI(
                "SOURCE")).hashCode()));
        assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR", null,
            new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT", new URI(
                "SOURCE")).hashCode()));
        assertThat(contributor1.hashCode(),
            not(new Contributor("AUTHOR", "EMAIL", null, "TOOL", "COMMENTS",
                "COPYRIGHT", new URI("SOURCE")).hashCode()));
        assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
            "EMAIL", new URI("WEBSITE"), null, "COMMENTS", "COPYRIGHT",
            new URI("SOURCE")).hashCode()));
        assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
            "EMAIL", new URI("WEBSITE"), "TOOL", null, "COPYRIGHT", new URI(
                "SOURCE")).hashCode()));
        assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
            "EMAIL", new URI("WEBSITE"), "TOOL", "COMMENTS", null, new URI(
                "SOURCE")).hashCode()));
        assertThat(contributor1.hashCode(),
            not(new Contributor("AUTHOR", "EMAIL", new URI("WEBSITE"), "TOOL",
                "COMMENTS", "COPYRIGHT", null).hashCode()));
    }
View Full Code Here

Examples of de.ailis.jollada.model.Contributor

    @Test
    public void testToString() throws URISyntaxException
    {
        assertEquals("Contributor [author=AUTHOR, authorEMail=EMAIL, "
            + "authorWebsite=WEBSITE, authoringTool=TOOL, comments=COMMENTS, "
            + "copyright=COPYRIGHT, sourceData=SOURCE]", new Contributor(
            "AUTHOR", "EMAIL", new URI("WEBSITE"), "TOOL", "COMMENTS",
            "COPYRIGHT", new URI("SOURCE")).toString());
    }
View Full Code Here

Examples of de.ailis.jollada.model.Contributor

     */

    @Test
    public void testAuthor()
    {
        final Contributor contributor = new Contributor();
        contributor.setAuthor("AUTHOR");
        assertEquals("AUTHOR", contributor.getAuthor());
    }
View Full Code Here

Examples of de.ailis.jollada.model.Contributor

     */

    @Test
    public void testAuthorEMail()
    {
        final Contributor contributor = new Contributor();
        contributor.setAuthorEMail("EMAIL");
        assertEquals("EMAIL", contributor.getAuthorEMail());
    }
View Full Code Here

Examples of de.ailis.jollada.model.Contributor

     */

    @Test
    public void testAuthoringTool()
    {
        final Contributor contributor = new Contributor();
        contributor.setAuthoringTool("TOOL");
        assertEquals("TOOL", contributor.getAuthoringTool());
    }
View Full Code Here

Examples of de.ailis.jollada.model.Contributor

     */

    @Test
    public void testAuthorWebsite() throws URISyntaxException
    {
        final Contributor contributor = new Contributor();
        contributor.setAuthorWebsite(new URI("WEBSITE"));
        assertEquals(new URI("WEBSITE"), contributor.getAuthorWebsite());
    }
View Full Code Here

Examples of de.ailis.jollada.model.Contributor

     */

    @Test
    public void testComments()
    {
        final Contributor contributor = new Contributor();
        contributor.setComments("COMMENTS");
        assertEquals("COMMENTS", contributor.getComments());
    }
View Full Code Here

Examples of de.ailis.jollada.model.Contributor

     */

    @Test
    public void testCopyright()
    {
        final Contributor contributor = new Contributor();
        contributor.setCopyright("COPYRIGHT");
        assertEquals("COPYRIGHT", contributor.getCopyright());
    }
View Full Code Here

Examples of de.ailis.jollada.model.Contributor

     */

    @Test
    public void testSourceData() throws URISyntaxException
    {
        final Contributor contributor = new Contributor();
        contributor.setSourceData(new URI("SOURCE"));
        assertEquals(new URI("SOURCE"), contributor.getSourceData());
    }
View Full Code Here

Examples of de.zib.scalaris.examples.wikipedia.data.Contributor

     *            The qualified name (with prefix), or the empty string if
     *            qualified names are not available.
     */
    public void endContributor(String uri, String localName, String qName) {
//        System.out.println("ip: " + ip + ", user: " + user + ", id: " + id);
        final_contributor = new Contributor();
        final_contributor.setIp(ip);
        if (!id.isEmpty()) {
            final_contributor.setId(Integer.parseInt(id));
        }
        final_contributor.setUser(user);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.