private static final String TESTCASE_JSON_SUFFIX = "-testcase.json";
@Override
protected <T> long serialize(File outputDirectory, Class<T> type, String name, Reader reader) {
AllureTestCasePack result = (AllureTestCasePack) JAXB.unmarshal(
reader,
type
);
long count = 0;
for (AllureTestCase testCase : result.getTestCases()) {
count += AllureReportUtils.serialize(
outputDirectory,
testCase.getUid() + TESTCASE_JSON_SUFFIX,
testCase
);