use of com.mercedesbenz.sechub.sharedkernel.usecases.UseCaseIdentifier in project sechub by mercedes-benz.
the class UseCaseEventMessageLinkAsciidocGeneratorManualTest method manualTestByDeveloper.
@Test
@EnabledIfSystemProperty(named = TestConstants.MANUAL_TEST_BY_DEVELOPER, matches = "true", disabledReason = TestConstants.DESCRIPTION_DISABLED_BECAUSE_A_MANUAL_TEST_FOR_GENERATION)
void manualTestByDeveloper() throws Exception {
System.setProperty("com.mercedesbenz.sechub.docgen.debug", "true");
File outputFolder = new File("./build/tmp/gen-asciidoc/");
Map<UseCaseIdentifier, Set<String>> usecaseToMessageIdMap = new TreeMap<>();
Set<String> list = new TreeSet<>();
list.add(MessageID.BATCH_JOB_STATUS.name());
list.add(MessageID.JOB_DONE.name());
usecaseToMessageIdMap.put(UseCaseIdentifier.UC_ADMIN_RESTARTS_JOB, list);
list = new TreeSet<>();
list.add(MessageID.BATCH_JOB_STATUS.name());
list.add(MessageID.JOB_DONE.name());
usecaseToMessageIdMap.put(UseCaseIdentifier.UC_ADMIN_RESTARTS_JOB_HARD, list);
UseCaseEventMessageLinkAsciidocGenerator generator = new UseCaseEventMessageLinkAsciidocGenerator(usecaseToMessageIdMap, outputFolder);
generator.generate();
}
use of com.mercedesbenz.sechub.sharedkernel.usecases.UseCaseIdentifier in project sechub by mercedes-benz.
the class UseCaseEventMessageLinkAsciidocGeneratorTestMain method main.
public static void main(String[] args) throws IOException {
System.setProperty("com.mercedesbenz.sechub.docgen.debug", "true");
File outputFolder = new File("./build/tmp/gen-asciidoc/");
Map<UseCaseIdentifier, Set<String>> usecaseToMessageIdMap = new TreeMap<>();
Set<String> list = new TreeSet<>();
list.add(MessageID.BATCH_JOB_STATUS.name());
list.add(MessageID.JOB_DONE.name());
usecaseToMessageIdMap.put(UseCaseIdentifier.UC_ADMIN_RESTARTS_JOB, list);
list = new TreeSet<>();
list.add(MessageID.BATCH_JOB_STATUS.name());
list.add(MessageID.JOB_DONE.name());
usecaseToMessageIdMap.put(UseCaseIdentifier.UC_ADMIN_RESTARTS_JOB_HARD, list);
UseCaseEventMessageLinkAsciidocGenerator generator = new UseCaseEventMessageLinkAsciidocGenerator(usecaseToMessageIdMap, outputFolder);
generator.generate();
}
Aggregations