@Test public void BuildListWith1Item() { List<String> documentClassCodeList = new ArrayList<String>(); documentClassCodeList.add("classcode1"); String classCodes = DocumentClassCodeParser.buildDocumentClassCodeItem(documentClassCodeList); assertEquals("('classcode1')", classCodes); }
@Test public void BuildListWithNullInput() { String classCodes = DocumentClassCodeParser.buildDocumentClassCodeItem(null); assertEquals("", classCodes); }
@Test public void BuildListWith0Items() { List<String> documentClassCodeList = new ArrayList<String>(); String classCodes = DocumentClassCodeParser.buildDocumentClassCodeItem(documentClassCodeList); assertEquals("", classCodes); }