File tree 18 files changed +337
-0
lines changed
src/test/java/io/securecodebox/persistence/defectdojo/model
18 files changed +337
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ dependencies {
43
43
testImplementation ' org.mockito:mockito-core:5.4.0'
44
44
testImplementation " org.mockito:mockito-junit-jupiter:5.4.0"
45
45
testImplementation ' uk.org.webcompere:system-stubs-jupiter:2.0.2'
46
+ testImplementation ' nl.jqno.equalsverifier:equalsverifier:3.15'
46
47
}
47
48
48
49
publishing {
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
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 Endpoint}
13
+ */
14
+ class EndpointTest {
15
+ @ Test
16
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
17
+ void equalsAndHashCode () {
18
+ EqualsVerifier .forClass (Endpoint .class ).verify ();
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
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 Engagement}
13
+ */
14
+ class EngagementTest {
15
+ @ Test
16
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
17
+ void equalsAndHashCode () {
18
+ EqualsVerifier .forClass (Engagement .class ).verify ();
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
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 Finding}
13
+ */
14
+ class FindingTest {
15
+ @ Test
16
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
17
+ void equalsAndHashCode () {
18
+ EqualsVerifier .forClass (Finding .class ).verify ();
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
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 GroupMember}
13
+ */
14
+ class GroupMemberTest {
15
+ @ Test
16
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
17
+ void equalsAndHashCode () {
18
+ EqualsVerifier .forClass (GroupMember .class ).verify ();
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
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 Group}
13
+ */
14
+ class GroupTest {
15
+ @ Test
16
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
17
+ void equalsAndHashCode () {
18
+ EqualsVerifier .forClass (Group .class ).verify ();
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
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 ProductGroup}
13
+ */
14
+ class ProductGroupTest {
15
+ @ Test
16
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
17
+ void equalsAndHashCode () {
18
+ EqualsVerifier .forClass (ProductGroup .class ).verify ();
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
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 Product}
13
+ */
14
+ class ProductTest {
15
+ @ Test
16
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
17
+ void equalsAndHashCode () {
18
+ EqualsVerifier .forClass (Product .class ).verify ();
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
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 ProductType}
13
+ */
14
+ class ProductTypeTest {
15
+ @ Test
16
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
17
+ void equalsAndHashCode () {
18
+ EqualsVerifier .forClass (ProductType .class ).verify ();
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
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 Response}
13
+ */
14
+ class ResponseTest {
15
+ @ Test
16
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
17
+ void equalsAndHashCode () {
18
+ EqualsVerifier .forClass (Response .class ).verify ();
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
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 RiskAcceptance}
13
+ */
14
+ class RiskAcceptanceTest {
15
+ @ Test
16
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
17
+ void equalsAndHashCode () {
18
+ EqualsVerifier .forClass (RiskAcceptance .class ).verify ();
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
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 ScanFile}
13
+ */
14
+ class ScanFileTest {
15
+ @ Test
16
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
17
+ void equalsAndHashCode () {
18
+ EqualsVerifier .forClass (ScanFile .class ).verify ();
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
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 Test}
13
+ */
14
+ class TestTest {
15
+ @ Test
16
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
17
+ void equalsAndHashCode () {
18
+ EqualsVerifier .forClass (Test .class ).verify ();
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
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 TestType}
13
+ */
14
+ class TestTypeTest {
15
+ @ Test
16
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
17
+ void equalsAndHashCode () {
18
+ EqualsVerifier .forClass (TestType .class ).verify ();
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
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 ToolConfig}
13
+ */
14
+ class ToolConfigTest {
15
+ @ Test
16
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
17
+ void equalsAndHashCode () {
18
+ EqualsVerifier .forClass (ToolConfig .class ).verify ();
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
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 ToolType}
13
+ */
14
+ class ToolTypeTest {
15
+ @ Test
16
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
17
+ void equalsAndHashCode () {
18
+ EqualsVerifier .forClass (ToolType .class ).verify ();
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
5
+ import org .junit .jupiter .api .Test ;
6
+
7
+ /**
8
+ * Tests for {@link UserProfile}
9
+ */
10
+ class UserProfileTest {
11
+ @ Test
12
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
13
+ void equalsAndHashCode () {
14
+ EqualsVerifier .forClass (UserProfile .class ).verify ();
15
+ }
16
+ }
Original file line number Diff line number Diff line change
1
+ package io .securecodebox .persistence .defectdojo .model ;
2
+
3
+ import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Disabled ;
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 User}
13
+ */
14
+ class UserTest {
15
+ @ Test
16
+ @ Disabled ("#23 Fails due to wrong equals implementation" )
17
+ void equalsAndHashCode () {
18
+ EqualsVerifier .forClass (User .class ).verify ();
19
+ }
20
+ }
You can’t perform that action at this time.
0 commit comments