Search in sources :

Example 11 with SecHubTimeUnit

use of com.mercedesbenz.sechub.commons.model.SecHubTimeUnit in project sechub by mercedes-benz.

the class SecHubTimeUnitTest method value_of__millisecond.

@Test
public void value_of__millisecond() {
    /* execute */
    SecHubTimeUnit unit = SecHubTimeUnit.valueOf("MILLISECOND");
    /* test */
    assertEquals(SecHubTimeUnit.MILLISECOND, unit);
}
Also used : SecHubTimeUnit(com.mercedesbenz.sechub.commons.model.SecHubTimeUnit) Test(org.junit.jupiter.api.Test) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest)

Aggregations

SecHubTimeUnit (com.mercedesbenz.sechub.commons.model.SecHubTimeUnit)11 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)7 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)5 ValueSource (org.junit.jupiter.params.provider.ValueSource)5 SecHubTimeUnitData (com.mercedesbenz.sechub.adapter.SecHubTimeUnitData)2 Test (org.junit.jupiter.api.Test)2 AdapterMetaData (com.mercedesbenz.sechub.adapter.AdapterMetaData)1 AdapterMetaDataCallback (com.mercedesbenz.sechub.adapter.AdapterMetaDataCallback)1 NetsparkerConfigBuilder (com.mercedesbenz.sechub.adapter.netsparker.NetsparkerConfig.NetsparkerConfigBuilder)1 WebScanDurationConfiguration (com.mercedesbenz.sechub.commons.model.WebScanDurationConfiguration)1 URI (java.net.URI)1