MCPcopy Create free account
hub / github.com/apache/solr / testAPI

Method testAPI

solr/solrj/src/test/org/noggit/TestJSONParser.java:861–868  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

859 }
860
861 @Test
862 public void testAPI() throws IOException {
863 JSONParser p = new JSONParser("[1,2]");
864 assertEquals(JSONParser.ARRAY_START, p.nextEvent());
865 // no nextEvent for the next objects...
866 assertEquals(1, p.getLong());
867 assertEquals(2, p.getLong());
868 }
869
870 @Test
871 public void testComments() throws IOException {

Callers

nothing calls this directly

Calls 3

nextEventMethod · 0.95
getLongMethod · 0.95
assertEqualsMethod · 0.80

Tested by

no test coverage detected