@Test public void sechub_config1_json_file_from_json_has_webconfig_with_url() throws Exception { String json = SharedKernelTestFileSupport.getTestfileSupport().loadTestFile("sechub_config1.json"); SecHubConfiguration result = SECHUB_CONFIG.fromJSON(json); assertTrue("webscan config must be present", result.getWebScan().isPresent()); assertTrue(result.getWebScan().get().getUris().contains(new URI("https: }
public Optional<SecHubWebScanConfiguration> getWebScan() { return webScan; }
SecHubConfiguration implements JSONable<SecHubConfiguration> { public Optional<SecHubWebScanConfiguration> getWebScan() { return webScan; } }
SecHubConfiguration implements JSONable<SecHubConfiguration> { public Optional<SecHubWebScanConfiguration> getWebScan() { return webScan; }  }
SecHubConfiguration implements JSONable<SecHubConfiguration> { public Optional<SecHubWebScanConfiguration> getWebScan() { return webScan; }  static SecHubConfiguration createFromJSON(String json); void setProjectId(String projectId); String getProjectId(); void setApiVersion(String apiVersion); String getApiVersion(); void setWebScan(SecHubWebScanConfiguration webScan); Optional<SecHubWebScanConfiguration> getWebScan(); void setCodeScan(SecHubCodeScanConfiguration codeScan); Optional<SecHubCodeScanConfiguration> getCodeScan(); void setInfraScan(SecHubInfrastructureScanConfiguration infraStructureScan); Optional<SecHubInfrastructureScanConfiguration> getInfraScan(); @Override Class<SecHubConfiguration> getJSONTargetClass(); }
SecHubConfiguration implements JSONable<SecHubConfiguration> { public Optional<SecHubWebScanConfiguration> getWebScan() { return webScan; }  static SecHubConfiguration createFromJSON(String json); void setProjectId(String projectId); String getProjectId(); void setApiVersion(String apiVersion); String getApiVersion(); void setWebScan(SecHubWebScanConfiguration webScan); Optional<SecHubWebScanConfiguration> getWebScan(); void setCodeScan(SecHubCodeScanConfiguration codeScan); Optional<SecHubCodeScanConfiguration> getCodeScan(); void setInfraScan(SecHubInfrastructureScanConfiguration infraStructureScan); Optional<SecHubInfrastructureScanConfiguration> getInfraScan(); @Override Class<SecHubConfiguration> getJSONTargetClass(); static final String PROPERTY_PROJECT_ID; static final String PROPERTY_API_VERSION; static final String PROPERTY_WEB_SCAN; static final String PROPERTY_INFRA_SCAN; static final String PROPERTY_CODE_SCAN; }