Skip to content

Commit

Permalink
Removing suppress(Warning.NONFINAL_FIELDS) from SenMLPack, SenMLRecor…
Browse files Browse the repository at this point in the history
…d, JsonArrayEntry and JsonRootObject tests.
  • Loading branch information
JaroslawLegierski committed Jan 3, 2025
1 parent 47d445c commit a52c527
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
import org.junit.jupiter.api.Test;

import nl.jqno.equalsverifier.EqualsVerifier;
import nl.jqno.equalsverifier.Warning;

class JsonArrayEntryTest {
@Test
public void assertEqualsHashcode() {
EqualsVerifier.forClass(JsonArrayEntry.class).suppress(Warning.NONFINAL_FIELDS).verify();
EqualsVerifier.forClass(JsonArrayEntry.class).verify();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
import org.junit.jupiter.api.Test;

import nl.jqno.equalsverifier.EqualsVerifier;
import nl.jqno.equalsverifier.Warning;

class JsonRootObjectTest {
@Test
public void assertEqualsHashcode() {
EqualsVerifier.forClass(JsonRootObject.class).suppress(Warning.NONFINAL_FIELDS).verify();
EqualsVerifier.forClass(JsonRootObject.class).verify();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
import org.junit.jupiter.api.Test;

import nl.jqno.equalsverifier.EqualsVerifier;
import nl.jqno.equalsverifier.Warning;

class SenMLPackTest {
@Test
public void assertEqualsHashcode() {
EqualsVerifier.forClass(SenMLPack.class).suppress(Warning.NONFINAL_FIELDS).verify();
EqualsVerifier.forClass(SenMLPack.class).verify();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@
import org.junit.jupiter.api.Test;

import nl.jqno.equalsverifier.EqualsVerifier;
import nl.jqno.equalsverifier.Warning;

class SenMLRecordTest {
@Test
public void assertEqualsHashcode() {
EqualsVerifier.forClass(SenMLRecord.class).suppress(Warning.NONFINAL_FIELDS).verify();
EqualsVerifier.forClass(SenMLRecord.class).verify();
}

}

0 comments on commit a52c527

Please sign in to comment.