*/
@Test
public void testEquals() throws URISyntaxException
{
final Contributor contributor = new Contributor("AUTHOR", "EMAIL",
new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT", new URI(
"SOURCE"));
assertTrue(contributor.equals(new Contributor("AUTHOR", "EMAIL",
new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT", new URI(
"SOURCE"))));
assertTrue(contributor.equals(contributor));
assertFalse(contributor.equals(null));
assertFalse(contributor.equals("someOther"));
assertFalse(contributor.equals(new Contributor("AUTHOR2", "EMAIL",
new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT", new URI(
"SOURCE"))));
assertFalse(contributor.equals(new Contributor("AUTHOR", "EMAIL2",
new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT", new URI(
"SOURCE"))));
assertFalse(contributor.equals(new Contributor("AUTHOR", "EMAIL",
new URI("WEBSITE2"), "TOOL", "COMMENTS", "COPYRIGHT", new URI(
"SOURCE"))));
assertFalse(contributor.equals(new Contributor("AUTHOR", "EMAIL",
new URI("WEBSITE"), "TOOL2", "COMMENTS", "COPYRIGHT", new URI(
"SOURCE"))));
assertFalse(contributor.equals(new Contributor("AUTHOR", "EMAIL",
new URI("WEBSITE"), "TOOL", "COMMENTS2", "COPYRIGHT", new URI(
"SOURCE"))));
assertFalse(contributor.equals(new Contributor("AUTHOR", "EMAIL",
new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT2", new URI(
"SOURCE"))));
assertFalse(contributor.equals(new Contributor("AUTHOR", "EMAIL",
new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT", new URI(
"SOURCE2"))));
assertFalse(new Contributor(null, "EMAIL", new URI("WEBSITE"), "TOOL",
"COMMENTS", "COPYRIGHT", new URI("SOURCE")).equals(contributor));
assertFalse(new Contributor("AUTHOR", null, new URI("WEBSITE"), "TOOL",
"COMMENTS", "COPYRIGHT", new URI("SOURCE")).equals(contributor));
assertFalse(new Contributor("AUTHOR", "EMAIL", null, "TOOL",
"COMMENTS", "COPYRIGHT", new URI("SOURCE")).equals(contributor));
assertFalse(new Contributor("AUTHOR", "EMAIL", new URI("WEBSITE"),
null, "COMMENTS", "COPYRIGHT", new URI("SOURCE"))
.equals(contributor));
assertFalse(new Contributor("AUTHOR", "EMAIL", new URI("WEBSITE"),
"TOOL", null, "COPYRIGHT", new URI("SOURCE")).equals(contributor));
assertFalse(new Contributor("AUTHOR", "EMAIL", new URI("WEBSITE"),
"TOOL", "COMMENTS", null, new URI("SOURCE")).equals(contributor));
assertFalse(new Contributor("AUTHOR", "EMAIL", new URI("WEBSITE"),
"TOOL", "COMMENTS", "COPYRIGHT", null).equals(contributor));
assertTrue(new Contributor(null, "EMAIL", new URI("WEBSITE"), "TOOL",
"COMMENTS", "COPYRIGHT", new URI("SOURCE")).equals(new Contributor(
null, "EMAIL", new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT",
new URI("SOURCE"))));
assertTrue(new Contributor("AUTHOR", null, new URI("WEBSITE"), "TOOL",
"COMMENTS", "COPYRIGHT", new URI("SOURCE")).equals(new Contributor(
"AUTHOR", null, new URI("WEBSITE"), "TOOL", "COMMENTS",
"COPYRIGHT", new URI("SOURCE"))));
assertTrue(new Contributor("AUTHOR", "EMAIL", null, "TOOL", "COMMENTS",
"COPYRIGHT", new URI("SOURCE")).equals(new Contributor("AUTHOR",
"EMAIL", null, "TOOL", "COMMENTS", "COPYRIGHT", new URI("SOURCE"))));
assertTrue(new Contributor("AUTHOR", "EMAIL", new URI("WEBSITE"), null,
"COMMENTS", "COPYRIGHT", new URI("SOURCE")).equals(new Contributor(
"AUTHOR", "EMAIL", new URI("WEBSITE"), null, "COMMENTS",
"COPYRIGHT", new URI("SOURCE"))));
assertTrue(new Contributor("AUTHOR", "EMAIL", new URI("WEBSITE"),
"TOOL", null, "COPYRIGHT", new URI("SOURCE"))
.equals(new Contributor("AUTHOR", "EMAIL", new URI("WEBSITE"),
"TOOL", null, "COPYRIGHT", new URI("SOURCE"))));
assertTrue(new Contributor("AUTHOR", "EMAIL", new URI("WEBSITE"),
"TOOL", "COMMENTS", null, new URI("SOURCE"))
.equals(new Contributor("AUTHOR", "EMAIL", new URI("WEBSITE"),
"TOOL", "COMMENTS", null, new URI("SOURCE"))));
assertTrue(new Contributor("AUTHOR", "EMAIL", new URI("WEBSITE"),
"TOOL", "COMMENTS", "COPYRIGHT", null).equals(new Contributor(
"AUTHOR", "EMAIL", new URI("WEBSITE"), "TOOL", "COMMENTS",
"COPYRIGHT", null)));
}