@Test public void classification_example1() { SerecoClassification classification = converterToTest.convert("PCI DSS v3.2;PCI DSS (3.2) - 6.5.8 - Improper access control,OWASP Top 10 2013;A4-Insecure Direct Object References,OWASP Top 10 2017;A5-Broken Access Control",new SerecoClassification()); assertEquals("6.5.8", classification.getPci32()); assertEquals("A5", classification.getOwasp()); }
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);  }