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

Method test

solr/solrj/src/test/org/noggit/TestJSONWriter.java:32–36  ·  view source on GitHub ↗
(String expected, Object val, int indent)

Source from the content-addressed store, hash-verified

30 // note - TestObjectBuilder also exercises JSONWriter
31
32 public void test(String expected, Object val, int indent) throws IOException {
33 expected = expected.replace('\'', '"');
34 String s1 = JSONUtil.toJSON(val, indent);
35 assertEquals(s1, expected);
36 }
37
38 public static List<Object> L(Object... lst) {
39 return Arrays.asList(lst);

Callers 3

testWriterMethod · 0.95
testWritableMethod · 0.95
testUnknownMethod · 0.95

Calls 3

toJSONMethod · 0.95
assertEqualsMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected