Java なウェブアプリのテストをするための mech というライブラリを書いていた https://github.com/tokuhirom/mech @Test public void testGoogle() throws Exception { try (Mech mech = new Mech("http://google.com/")) { try (MechResponse res = mech.get("/").execute()) { assertEquals(200, res.getStatusCode()); } } } こんな感じで使える。この使い方は本筋じゃなくて本当にやりたいのはこっち。 class MyServlet extends HttpServlet { protected void service(HttpServletRequest req, Htt
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く