このhttpunitテストケースがwc.getResponseで「不正なファイル記述子」で失敗し続ける理由を誰かが説明できますか? 推測として is.close() を追加し、失敗の前後に移動しましたが、効果はありませんでした。このテストでは、リクエストを Dropwizard アプリに送信します。
public class TestCircuitRequests
{
static WebConversation wc = new WebConversation();
static String url = "http://localhost:8888/funl/circuit/test.circuit1";
@Test
public void testPut() throws Exception
{
InputStream is = new FileInputStream("src/test/resources/TestCircuit.json");
WebRequest rq = new PutMethodWebRequest(url, is, "application/json");
wc.setAuthentication("FUNL", "foo", "bar");
WebResponse response = wc.getResponse(rq);
is.close();
}