File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
src/test/java/io/securecodebox/persistence/defectdojo/service Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ package io .securecodebox .persistence .defectdojo .service ;
2+
3+ import io .securecodebox .persistence .defectdojo .config .DefectDojoConfig ;
4+ import org .junit .jupiter .api .Assertions ;
5+ import org .junit .jupiter .api .Test ;
6+
7+ import static org .junit .jupiter .api .Assertions .*;
8+ import static org .hamcrest .MatcherAssert .assertThat ;
9+ import static org .hamcrest .Matchers .*;
10+
11+ /**
12+ * Tests for {@link ImportScanService}
13+ */
14+ class ImportScanServiceTest {
15+ private final DefectDojoConfig config = new DefectDojoConfig (
16+ "url" ,
17+ "apiKey" ,
18+ "username" ,
19+ 23 ,
20+ 42L
21+ );
22+ private final ImportScanService sut = new ImportScanService (config );
23+
24+ @ Test
25+ void constructorShouldThrowExceptionOnNullConfig () {
26+ assertThrows (NullPointerException .class , () -> {
27+ new ImportScanService (null );
28+ });
29+ }
30+ }
You can’t perform that action at this time.
0 commit comments