Skip to content

Commit 26b2a3b

Browse files
eduardboschkoral--
authored andcommitted
fix: Suppress warning until property is used in equals
A bug has been reported here jqno/equalsverifier#506
1 parent 43b5440 commit 26b2a3b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dispatcher/src/test/kotlin/pl/droidsonroids/testing/mockwebserver/PathQueryConditionTest.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package pl.droidsonroids.testing.mockwebserver
22

33
import com.nhaarman.mockito_kotlin.mock
44
import nl.jqno.equalsverifier.EqualsVerifier
5+
import nl.jqno.equalsverifier.Warning
56
import okhttp3.HttpUrl.Companion.toHttpUrl
67
import org.assertj.core.api.Assertions.assertThat
78
import org.junit.Before
@@ -112,7 +113,10 @@ class PathQueryConditionTest {
112113

113114
@Test
114115
fun `equals and hashCode match contract`() {
115-
EqualsVerifier.forClass(PathQueryCondition::class.java).verify()
116+
EqualsVerifier
117+
.forClass(PathQueryCondition::class.java)
118+
.suppress(Warning.ALL_FIELDS_SHOULD_BE_USED)
119+
.verify()
116120
}
117121

118122
@Test

0 commit comments

Comments
 (0)