mirror of https://github.com/apache/lucene.git
tests: close requests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1023603 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d56d528489
commit
342d75e92d
|
@ -65,7 +65,7 @@ public class JSONWriterTest extends SolrTestCaseJ4 {
|
|||
buf = new StringWriter();
|
||||
w.write(buf, req, rsp);
|
||||
assertEquals(buf.toString(), "{\"data1\":\"NaN\",\"data2\":\"-Infinity\",\"data3\":\"Infinity\"}");
|
||||
|
||||
req.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -80,6 +80,7 @@ public class JSONWriterTest extends SolrTestCaseJ4 {
|
|||
rsp.add("data3", true);
|
||||
w.write(buf, req, rsp);
|
||||
assertEquals(buf.toString(), "a:3:{s:5:\"data1\";s:5:\"hello\";s:5:\"data2\";i:42;s:5:\"data3\";b:1;}");
|
||||
req.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -96,7 +97,7 @@ public class JSONWriterTest extends SolrTestCaseJ4 {
|
|||
|
||||
w.write(buf, req, rsp);
|
||||
assertEquals(buf.toString(), "{\"nl\":[[\"data1\",\"hello\"],[null,42]]}");
|
||||
|
||||
req.close();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue