public PositionMapping(MZTabColumnFactory factory, String[] headerList) { String header; for (int physicalPosition = 0; physicalPosition < headerList.length; physicalPosition++) { header = headerList[physicalPosition]; MZTabColumn column = factory.findColumnByHeader(header); if (column != null) { put(physicalPosition, column.getLogicPosition()); } } }
@Test public void testUnique() throws Exception { pepParser.checkUnique(pehFactory.findColumnByHeader("unique"), "x"); assertError(FormatErrorType.MZBoolean); }