@Test public void classification_example2() { SerecoClassification classification = converterToTest.convert("FISMA 2014;Identification And Authentication,NIST SP 800-53;AC-3 Access Enforcement (P1)",new SerecoClassification()); assertEquals("Identification And Authentication", classification.getFisma()); assertEquals("AC-3", classification.getNist()); }
public SerecoClassification convert(String categories, SerecoClassification classification) { if (categories==null || categories.isEmpty()) { return classification; } String[] splitted = categories.split(","); for (String split: splitted) { inspect(split,classification); } return classification; }
CheckmarxCategoriesToClassificationConverter { public SerecoClassification convert(String categories, SerecoClassification classification) { if (categories==null || categories.isEmpty()) { return classification; } String[] splitted = categories.split(","); for (String split: splitted) { inspect(split,classification); } return classification; } }
CheckmarxCategoriesToClassificationConverter { public SerecoClassification convert(String categories, SerecoClassification classification) { if (categories==null || categories.isEmpty()) { return classification; } String[] splitted = categories.split(","); for (String split: splitted) { inspect(split,classification); } return classification; }  }
CheckmarxCategoriesToClassificationConverter { public SerecoClassification convert(String categories, SerecoClassification classification) { if (categories==null || categories.isEmpty()) { return classification; } String[] splitted = categories.split(","); for (String split: splitted) { inspect(split,classification); } return classification; }  SerecoClassification convert(String categories, SerecoClassification classification); }
CheckmarxCategoriesToClassificationConverter { public SerecoClassification convert(String categories, SerecoClassification classification) { if (categories==null || categories.isEmpty()) { return classification; } String[] splitted = categories.split(","); for (String split: splitted) { inspect(split,classification); } return classification; }  SerecoClassification convert(String categories, SerecoClassification classification);  }