Search in sources :

Example 6 with UseCaseIdentifier

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();
}
Also used : UseCaseIdentifier(com.mercedesbenz.sechub.sharedkernel.usecases.UseCaseIdentifier) Set(java.util.Set) TreeSet(java.util.TreeSet) TreeSet(java.util.TreeSet) TreeMap(java.util.TreeMap) File(java.io.File) EnabledIfSystemProperty(org.junit.jupiter.api.condition.EnabledIfSystemProperty) Test(org.junit.jupiter.api.Test)

Example 7 with UseCaseIdentifier

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();
}
Also used : UseCaseIdentifier(com.mercedesbenz.sechub.sharedkernel.usecases.UseCaseIdentifier) Set(java.util.Set) TreeSet(java.util.TreeSet) TreeSet(java.util.TreeSet) TreeMap(java.util.TreeMap) File(java.io.File)

Aggregations

UseCaseIdentifier (com.mercedesbenz.sechub.sharedkernel.usecases.UseCaseIdentifier)7 File (java.io.File)3 Set (java.util.Set)3 TreeMap (java.util.TreeMap)2 TreeSet (java.util.TreeSet)2 Logger (ch.qos.logback.classic.Logger)1 UseCaseEventMessageLinkAsciidocGenerator (com.mercedesbenz.sechub.docgen.messaging.UseCaseEventMessageLinkAsciidocGenerator)1 UseCaseEventOverviewPlantUmlGenerator (com.mercedesbenz.sechub.docgen.messaging.UseCaseEventOverviewPlantUmlGenerator)1 PDSUseCaseDefinition (com.mercedesbenz.sechub.pds.usecase.PDSUseCaseDefinition)1 PDSUseCaseIdentifier (com.mercedesbenz.sechub.pds.usecase.PDSUseCaseIdentifier)1 IntegrationTestEventHistory (com.mercedesbenz.sechub.sharedkernel.messaging.IntegrationTestEventHistory)1 UseCaseDefinition (com.mercedesbenz.sechub.sharedkernel.usecases.UseCaseDefinition)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Test (org.junit.jupiter.api.Test)1 EnabledIfSystemProperty (org.junit.jupiter.api.condition.EnabledIfSystemProperty)1