Labels extends AlignmentData { @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("["); for (int i = 0; i < items.length; i++) { sb.append("(").append(items[i]).append(") "); } sb.append("]"); return sb.toString(); } Labels(Label[] items);  Labels(String[] lines);  Labels(String[] lines, int minItemsPerLine);  Labels(Labels e);  Labels(InputStream in);  Labels(String labelFile);  Labels(Document acoustparams); String[] getLabelSymbols(); void print(); @Override String toString(); int getLabelIndexAtTime(double time); @Override boolean equals(Object other); @Override int hashCode(); public Label[] items; }
@Test public void lineArrayConstructor() throws Exception { String[] lines = IOUtils.toString(getClass().getResourceAsStream("pop001.lab"), "ASCII").split("\n"); Labels l = new Labels(lines); assertEquals(10, l.items.length); }