Commit c7646d51 authored by Rajiv Prabhakar's avatar Rajiv Prabhakar
Browse files

Unit test fix - exception type changed

parent 8d97e1f9
Pipeline #14633477 passed with stage
in 1 minute and 35 seconds
...@@ -11,6 +11,7 @@ import org.junit.Test; ...@@ -11,6 +11,7 @@ import org.junit.Test;
import java.util.ConcurrentModificationException; import java.util.ConcurrentModificationException;
import java.util.Iterator; import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
...@@ -47,7 +48,7 @@ public class JsonUtilcTest extends TestBase { ...@@ -47,7 +48,7 @@ public class JsonUtilcTest extends TestBase {
try { try {
iterable.iterator().next(); iterable.iterator().next();
Assert.fail("Expecting exception to be thrown"); Assert.fail("Expecting exception to be thrown");
} catch (IllegalArgumentException ignored) {} } catch (NoSuchElementException ignored) {}
} }
@Test @Test
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment