assertEquals("[3]", index);
}
@Test
public void testBuildOutput() throws InvalidDDMSException {
Rights rights = new Rights(true, true, true);
List<IDDMSComponent> objectList = new ArrayList<IDDMSComponent>();
objectList.add(rights);
assertEquals("rights.privacyAct: true\nrights.intellectualProperty: true\nrights.copyright: true\n",
rights.buildHTMLTextOutput(OutputFormat.TEXT, "", objectList));
List<String> stringList = new ArrayList<String>();
stringList.add("Text");
assertEquals("name: Text\n", rights.buildHTMLTextOutput(OutputFormat.TEXT, "name", stringList));
List<Double> otherList = new ArrayList<Double>();
otherList.add(Double.valueOf(2.0));
assertEquals("name: 2.0\n", rights.buildHTMLTextOutput(OutputFormat.TEXT, "name", otherList));
}