Search in sources :

Example 1 with MappingType

use of com.mercedesbenz.sechub.sharedkernel.mapping.MappingIdentifier.MappingType in project sechub by mercedes-benz.

the class MappingIdentifierTest method hasTypeContainedIn_works.

@Test
public void hasTypeContainedIn_works() {
    MappingIdentifier adapterConfigId = CHECKMARX_NEWPROJECT_TEAM_ID;
    assertTrue(adapterConfigId.hasTypeContainedIn(MappingType.PRODUCT_EXECUTOR_CONFIGURATION_PARAMETER));
    assertTrue(adapterConfigId.hasTypeContainedIn(MappingType.COMMON_CONFIGURATION, MappingType.PRODUCT_EXECUTOR_CONFIGURATION_PARAMETER));
    assertTrue(adapterConfigId.hasTypeContainedIn(MappingType.PRODUCT_EXECUTOR_CONFIGURATION_PARAMETER, MappingType.COMMON_CONFIGURATION));
    assertTrue(adapterConfigId.hasTypeContainedIn(MappingType.PRODUCT_EXECUTOR_CONFIGURATION_PARAMETER, MappingType.ADAPTER_CONFIGURATION));
    assertFalse(adapterConfigId.hasTypeContainedIn(MappingType.COMMON_CONFIGURATION));
    assertFalse(adapterConfigId.hasTypeContainedIn(MappingType.ADAPTER_CONFIGURATION));
    assertFalse(adapterConfigId.hasTypeContainedIn((MappingType[]) null));
    assertFalse(adapterConfigId.hasTypeContainedIn(new MappingType[] {}));
    assertFalse(adapterConfigId.hasTypeContainedIn(new MappingType[] { null }));
}
Also used : MappingType(com.mercedesbenz.sechub.sharedkernel.mapping.MappingIdentifier.MappingType) MappingIdentifier(com.mercedesbenz.sechub.sharedkernel.mapping.MappingIdentifier) Test(org.junit.Test)

Aggregations

MappingIdentifier (com.mercedesbenz.sechub.sharedkernel.mapping.MappingIdentifier)1 MappingType (com.mercedesbenz.sechub.sharedkernel.mapping.MappingIdentifier.MappingType)1 Test (org.junit.Test)1