Skip to content

Commit c5fa021

Browse files
committed
Tests to pass nullable
1 parent b96a0d7 commit c5fa021

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

core-api/src/test/java/com/optimizely/ab/config/parser/GsonConfigParserTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import com.optimizely.ab.config.ProjectConfig;
2020

21+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
2122
import org.junit.Rule;
2223
import org.junit.Test;
2324
import org.junit.rules.ExpectedException;
@@ -102,6 +103,7 @@ public void emptyJsonExceptionWrapping() throws Exception {
102103
* Verify that null JSON results in a {@link ConfigParseException} being thrown.
103104
*/
104105
@Test
106+
@SuppressFBWarnings(value="NP_NONNULL_PARAM_VIOLATION", justification="Testing nullness contract violation")
105107
public void nullJsonExceptionWrapping() throws Exception {
106108
thrown.expect(ConfigParseException.class);
107109

core-api/src/test/java/com/optimizely/ab/config/parser/JacksonConfigParserTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import com.optimizely.ab.config.ProjectConfig;
2020

21+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
2122
import org.junit.Rule;
2223
import org.junit.Test;
2324
import org.junit.rules.ExpectedException;
@@ -102,6 +103,7 @@ public void emptyJsonExceptionWrapping() throws Exception {
102103
* Verify that null JSON results in a {@link ConfigParseException} being thrown.
103104
*/
104105
@Test
106+
@SuppressFBWarnings(value="NP_NONNULL_PARAM_VIOLATION", justification="Testing nullness contract violation")
105107
public void nullJsonExceptionWrapping() throws Exception {
106108
thrown.expect(ConfigParseException.class);
107109

core-api/src/test/java/com/optimizely/ab/config/parser/JsonConfigParserTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import com.optimizely.ab.config.ProjectConfig;
2020

21+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
2122
import org.junit.Rule;
2223
import org.junit.Test;
2324
import org.junit.rules.ExpectedException;
@@ -102,6 +103,7 @@ public void emptyJsonExceptionWrapping() throws Exception {
102103
* Verify that null JSON results in a {@link ConfigParseException} being thrown.
103104
*/
104105
@Test
106+
@SuppressFBWarnings(value="NP_NONNULL_PARAM_VIOLATION", justification="Testing nullness contract violation")
105107
public void nullJsonExceptionWrapping() throws Exception {
106108
thrown.expect(ConfigParseException.class);
107109

core-api/src/test/java/com/optimizely/ab/config/parser/JsonSimpleConfigParserTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import com.optimizely.ab.config.ProjectConfig;
2020

21+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
2122
import org.junit.Rule;
2223
import org.junit.Test;
2324
import org.junit.rules.ExpectedException;
@@ -100,6 +101,7 @@ public void emptyJsonExceptionWrapping() throws Exception {
100101
* Verify that null JSON results in a {@link ConfigParseException} being thrown.
101102
*/
102103
@Test
104+
@SuppressFBWarnings(value="NP_NONNULL_PARAM_VIOLATION", justification="Testing nullness contract violation")
103105
public void nullJsonExceptionWrapping() throws Exception {
104106
thrown.expect(ConfigParseException.class);
105107

0 commit comments

Comments
 (0)