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 }));
}
Aggregations