use of com.oracle.truffle.tools.utils.json.JSONException in project graal by oracle.
the class GraalChannelTest method testReleaseNoBases.
@Test
public void testReleaseNoBases() throws Exception {
Path p = dataFile("data/rel-no-bases.json");
try (InputStream is = Files.newInputStream(p)) {
JSONObject o = new JSONObject(new JSONTokener(is));
ReleaseEntry e = channel.jsonToRelease("19.3.3-ee-jdk11", o);
assertNull(e);
fail("JSONexception expected.");
} catch (JSONException ex) {
// OK
}
}
Aggregations