File tree Expand file tree Collapse file tree 18 files changed +337
-0
lines changed
src/test/java/io/securecodebox/persistence/defectdojo/model Expand file tree Collapse file tree 18 files changed +337
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ dependencies {
4343 testImplementation ' org.mockito:mockito-core:5.4.0'
4444 testImplementation " org.mockito:mockito-junit-jupiter:5.4.0"
4545 testImplementation ' uk.org.webcompere:system-stubs-jupiter:2.0.2'
46+ testImplementation ' nl.jqno.equalsverifier:equalsverifier:3.15'
4647}
4748
4849publishing {
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+ }
You can’t perform that action at this time.
0 commit comments