{"id":1191,"date":"2021-03-17T15:31:19","date_gmt":"2021-03-17T06:31:19","guid":{"rendered":"https:\/\/www.opentone.co.jp\/ot-lab\/?p=1191"},"modified":"2025-05-12T10:06:14","modified_gmt":"2025-05-12T01:06:14","slug":"http-junit-test","status":"publish","type":"post","link":"https:\/\/www.opentone.co.jp\/ot-lab\/all\/web-system\/http-junit-test","title":{"rendered":"\u5916\u90e8\u30b5\u30fc\u30d0\u3078\u306eHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092JUnit\uff08\u30e2\u30c3\u30af\uff09\u3067\u30c6\u30b9\u30c8\u3057\u3088\u3046"},"content":{"rendered":"\n<p>\u3053\u3093\u306b\u3061\u306f\u3002itou\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u3001\u5916\u90e8\u30b5\u30fc\u30d0\u3078HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u6a5f\u80fd\u3092JUnit\u3067\u30c6\u30b9\u30c8\u3092\u3059\u308b\u969b<br>\u5b9f\u969b\u306b\u5916\u90e8\u30b5\u30fc\u30d0\u3092\u5efa\u3066\u308b\u3053\u3068\u306a\u304f\u30c6\u30b9\u30c8\u3067\u304d\u308b\u65b9\u6cd5\u3092\u8a18\u8f09\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u691c\u8a3c\u74b0\u5883<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Eclipse 4.4.1<\/li><li>Java 1.7<\/li><li>JUnit 4.12<\/li><li>JMockit 1.17<\/li><li>httpclient 4.4.1<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Eclipse\u52d5\u4f5c\u78ba\u8a8d\u624b\u9806<\/h3>\n\n\n\n<p>Eclipse\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u6dfb\u4ed8\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067<br>\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u306a\u304c\u3089\u3054\u89a7\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<br><a href=\"http:\/\/labs.opentone.co.jp\/wp-content\/uploads\/2015\/06\/opentone_labs_201506.zip\">opentone_labs_201506.zip<\/a><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u300c\u30d5\u30a1\u30a4\u30eb\u300d-\u300c\u30a4\u30f3\u30dd\u30fc\u30c8\u300d-\u300c\u65e2\u5b58\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3078\u300d\u3092\u9078\u629e<\/li><li>\u300c\u30a2\u30fc\u30ab\u30a4\u30d6\u30fb\u30d5\u30a1\u30a4\u30eb\u306e\u9078\u629e\u300d\u3067opentone_labs_201506.zip\u3092\u9078\u629e\u3057\u30a4\u30f3\u30dd\u30fc\u30c8<\/li><li>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u300c\u5b9f\u884c\u300d-\u300cJUnit \u30c6\u30b9\u30c8\u300d<\/li><li>JUnit\u304c\u5168\u3066\u7dd1\uff08\u6210\u529f\uff09\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">\u30c6\u30b9\u30c8\u5bfe\u8c61\u6a5f\u80fd\u8aac\u660e<\/h3>\n\n\n\n<p>\u4eca\u56de\u306f\u300c\u5f15\u6570\u306eURL\u306b\u5bfe\u3057\u3066GET\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3044\u3001HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u8fd4\u5374\u3059\u308b\u300d\u3068\u3044\u3046\u6a5f\u80fd\u3092\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<br>\u30fbHttpServiceImpl.java\uff08\u30c6\u30b9\u30c8\u5bfe\u8c61\u6a5f\u80fd\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[code]\n@Service\npublic class HttpServiceImpl implements HttpService {\n\n    @Override\n    public int requestUrl(String url) throws IOException {\n        CloseableHttpClient httpClient = null;\n        CloseableHttpResponse response = null;\n        int statusCode;\n\n        try {\n            \/\/ CloseableHttpClient\u3092\u751f\u6210\n            httpClient = HttpClients.createDefault();\n\n            \/\/ GET\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4f5c\u6210\n            HttpGet request = new HttpGet(url);\n\n            \/\/ HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3044\u3001HTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u53d6\u5f97\n            response = httpClient.execute(request);\n\n            \/\/ HTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u3088\u308aHTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u53d6\u5f97\n            statusCode = response.getStatusLine().getStatusCode();\n\n        } finally {\n            if (httpClient != null) {\n                \/\/ CloseableHttpClient\u3092close\n                httpClient.close();\n            }\n\n            if (response != null) {\n                \/\/ CloseableHttpResponse\u3092close\n                response.close();\n            }\n        }\n\n        \/\/ HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u8fd4\u5374\n        return statusCode;\n\n    }\n}\n[\/code]<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u5916\u90e8\u30b5\u30fc\u30d0\u304c\u3042\u308b\u72b6\u614b\u3067\u306eJUnit<\/h3>\n\n\n\n<p>\u6bd4\u8f03\u306e\u70ba\u3001\u307e\u305a\u306f\u5916\u90e8\u30b5\u30fc\u30d0\u304c\u3042\u308b\u72b6\u614b\u3067JUnit\u3092\u5b9f\u65bd\u3057\u3066\u307f\u307e\u3059\u3002<br>\u5916\u90e8\u30b5\u30fc\u30d0\u306b\u306fexample.com\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br>\u30d6\u30e9\u30a6\u30b6\u3067 https:\/\/example.com\/ \u3068\u6307\u5b9a\u3059\u308c\u3070\u8868\u793a\u3055\u308c\u308b\u3068\u304a\u308a\u3001\u5b9f\u5b58\u3059\u308b\u30b5\u30fc\u30d0\u3067\u3059\u3002<br>\u30fbUnusedMockedHttpServiceTest.java<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[code]\n@RunWith(SpringJUnit4ClassRunner.class)\n@ContextConfiguration(locations = { \"file:src\/main\/webapp\/WEB-INF\/application-context.xml\" })\npublic class UnusedMockedHttpServiceTest {\n\n    @Autowired\n    private HttpService httpService;\n\n    \/**\n     * HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\uff1d200 OK\n     *\n     * @throws Exception\n     *             Exception\n     *\/\n    @Test\n    public void example200() throws Exception {\n        \/\/ http:\/\/example.com\/ \u306bHTTP\u30ea\u30af\u30a8\u30b9\u30c8\n        int actual = httpService.requestUrl(\"http:\/\/example.com\/\");\n\n        \/\/ HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u304c200 OK\u3067\u3042\u308b\u3053\u3068\n        assertThat(actual, is(HttpStatus.OK.value()));\n    }\n\n    \/**\n     * HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\uff1d 404 Not Found\n     *\n     * @throws Exception\n     *             Exception\n     *\/\n    @Test\n    public void example404() throws Exception {\n        \/\/ http:\/\/example.com\/not_found \u306bHTTP\u30ea\u30af\u30a8\u30b9\u30c8\n        int actual = httpService.requestUrl(\"http:\/\/example.com\/not_found\");\n\n        \/\/ HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u304c404 Not Found\u3067\u3042\u308b\u3053\u3068\n        assertThat(actual, is(HttpStatus.NOT_FOUND.value()));\n    }\n}\n[\/code]<\/pre>\n\n\n\n<p>http:\/\/example.com\/ \u306f\u5b58\u5728\u3059\u308bURL\u306a\u306e\u3067<br>HTTP\u30b9\u30c6\u30fc\u30bf\u30b9 200:OK\u304c\u8fd4\u5374\u3055\u308c\u307e\u3059<\/p>\n\n\n\n<p>http:\/\/example.com\/not_found \u306f\u5b58\u5728\u3057\u306a\u3044URL\u306a\u306e\u3067<br>HTTP\u30b9\u30c6\u30fc\u30bf\u30b9 404 Not Found\u304c\u8fd4\u5374\u3055\u308c\u307e\u3059<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5916\u90e8\u30b5\u30fc\u30d0\u304c\u306a\u3044\u72b6\u614b\u3067\u306eJUnit<\/h3>\n\n\n\n<p>\u3044\u3088\u3044\u3088\u3001\u672c\u984c\u306e<br>\u5916\u90e8\u30b5\u30fc\u30d0\u3092\u4f7f\u7528\u305b\u305a\u306b\u30c6\u30b9\u30c8\u3092\u3057\u305f\u5834\u5408\u306e\u65b9\u6cd5\u3092\u8a18\u8f09\u3044\u305f\u3057\u307e\u3059\u3002<br>\u5916\u90e8\u30b5\u30fc\u30d0\u3092\u6307\u5b9a\u3057\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u767a\u884c\u3059\u308b\u4ee3\u308f\u308a\u306b\u3001<br>\u3069\u306e\u3088\u3046\u306a\u8a18\u8ff0\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u7740\u76ee\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u30fbUsedMockedHttpServiceTest.java<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[code]\n    \/**\n     * HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\uff1d500 Internal Server Error\n     *\n     * @throws Exception\n     *             Exception\n     *\/\n    @Test\n    public void example500() throws Exception {\n        \/\/ HTTP\u30b9\u30c6\u30fc\u30bf\u30b9500 Internal Server Error\u304c\u8fd4\u5374\u3055\u308c\u308b\u3088\u3046\u30e2\u30c3\u30af\u306b\u8a2d\u5b9a\n        mockHttpClientSet(HttpStatus.INTERNAL_SERVER_ERROR.value());\n\n        \/\/ \u30e2\u30c3\u30af\u3092\u4f7f\u7528\u3059\u308b\u306e\u3067\u3001\u5b9f\u969b\u306b\u306f \u2605dummy\u2605 \u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3055\u308c\u306a\u3044\n        int actual = httpService.requestUrl(\"\u2605dummy\u2605\");\n\n        \/\/ HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u304c500 Internal Server Error\u3067\u3042\u308b\u3053\u3068\n        assertThat(actual, is(HttpStatus.INTERNAL_SERVER_ERROR.value()));\n    }\n[\/code]<\/pre>\n\n\n\n<p>requestUrl\u306e\u5f15\u6570\u306b&#8221;\u2605dummy\u2605\u201d\u3068\u6307\u5b9a\u3057\u3066\u3001\u5916\u90e8\u30b5\u30fc\u30d0\u3092\u6307\u5b9a\u305b\u305a\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u767a\u884c\u3057\u307e\u3057\u305f\u304c<br>HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u300c500 Internal Server Error\u300d\u304c\u8fd4\u5374\u3055\u308c\u3066\u30c6\u30b9\u30c8OK\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u524d\u306b\u5b9f\u65bd\u3057\u3066\u3044\u308b\u300cmockHttpClientSet\u300d\u306b\u3054\u6ce8\u76ee\u304f\u3060\u3055\u3044\u3002<br>\u5f8c\u8ff0\u3059\u308b\u300c\u30e2\u30c3\u30af\u300d\u3068\u547c\u3070\u308c\u308b\u4ed5\u7d44\u307f\u3092\u5229\u7528\u3059\u308b\u3068\u3001\u8fd4\u5374\u3059\u308bHTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u3042\u3089\u304b\u3058\u3081\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br>\u3053\u308c\u306b\u3088\u3063\u3066\u5916\u90e8\u30b5\u30fc\u30d0\u306b\u5b9f\u969b\u306b\u30a2\u30af\u30bb\u30b9\u3057\u306a\u304f\u3066\u3082\u3001\u30c6\u30b9\u30c8\u3057\u305f\u3044\u632f\u308b\u821e\u3044\u306b\u5408\u308f\u305b\u305f<br>HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u7d50\u679c\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30e2\u30c3\u30af\u306e\u4ed5\u7d44\u307f<\/h3>\n\n\n\n<p>\u4eca\u56de\u306f\u300cJMockit\u300d\u3068\u3044\u3046\u30e2\u30c3\u30af\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<br>\u300cJMockit\u300d\u306e\u8a73\u7d30\u306f <a href=\"http:\/\/jmockit.org\/\">http:\/\/jmockit.org\/<\/a> \u3092\u3054\u53c2\u8003\u304f\u3060\u3055\u3044\u3002<br>\u4eca\u56de\u306f\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u5024\u3092\u6307\u5b9a\u3059\u308b\u30e2\u30c3\u30af\u306e\u6a5f\u80fd\u306b\u7d5e\u3063\u3066\u3054\u8aac\u660e\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30e2\u30c3\u30af\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\u306eAbstractMockedTest.java\u3092\u78ba\u8a8d\u3057\u307e\u3059<br>CloseableHttpClient\u3092\u30e2\u30c3\u30af\u5316\u3057<br>CloseableHttpClient\u306eexecute\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f<br>mockHttpClientSet\u3067\u6307\u5b9a\u306eHTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u306b\u3088\u308a\u751f\u6210\u3057\u305f\u3001HttpResponseImplDummy\u304c\u8fd4\u5374\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<br>\u30fbAbstractMockedTest.java<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[code]\npublic abstract class AbstractMockedTest {\n\n    @Mocked\n    private CloseableHttpClient mockHttpClient;\n\n    \/**\n     * CloseableHttpClient#execute \u306e\u30e2\u30c3\u30af\u8a2d\u5b9a\n     *\n     * @param httpStatus\n     *            HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\n     * @throws IOException\n     *             IOException\n     *\/\n    protected void mockHttpClientSet(final int httpStatus) throws IOException {\n        new NonStrictExpectations() {\n            {\n                \/\/ \u30e2\u30c3\u30af\u306e\u5bfe\u8c61\u30e1\u30bd\u30c3\u30c9\u3092\u6307\u5b9a\n                mockHttpClient.execute((HttpUriRequest) any);\n\n                \/\/ CloseableHttpClient#execute\u306e\u623b\u308a\u5024\u3092\u751f\u6210\n                result = new HttpResponseImplDummy(httpStatus);\n            }\n        };\n    }\n\n}\n[\/code]<\/pre>\n\n\n\n<p>\u30fbHttpResponseImplDummy.java<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[code]\npublic class HttpResponseImplDummy implements CloseableHttpResponse {\n    \/**\n     * \u30b9\u30c6\u30fc\u30bf\u30b9\u30e9\u30a4\u30f3\n     *\/\n    private StatusLine statusLine;\n\n    \/**\n     * HTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u3046\u3061\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u30e9\u30a4\u30f3\uff08HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\uff09\u3092\u5b9a\u7fa9\n     *\n     * @param httpStatus\n     *            HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\n     *\/\n    public HttpResponseImplDummy(int httpStatus) {\n        setStatusLine(new StatusLineImpl(httpStatus));\n    }\n\n    \/**\n     * \u30b9\u30c6\u30fc\u30bf\u30b9\u30e9\u30a4\u30f3\u3092\u5b9f\u88c5\n     *\n     * @author opentone\n     *\n     *\/\n    public class StatusLineImpl implements StatusLine {\n        private final ProtocolVersion protocolVersion;\n        private final int statusCode;\n        private final String reasonPhrase;\n\n        private StatusLineImpl(int statusCode) {\n            this.protocolVersion = new ProtocolVersion(\"HTTP\", 1, 1);\n            this.statusCode = statusCode;\n            this.reasonPhrase = \"OK\";\n        }\n\n        @Override\n        public ProtocolVersion getProtocolVersion() {\n            return protocolVersion;\n        }\n\n        @Override\n        public int getStatusCode() {\n            return statusCode;\n        }\n\n        @Override\n        public String getReasonPhrase() {\n            return reasonPhrase;\n        }\n    }\n\n    @Override\n    public StatusLine getStatusLine() {\n        return this.statusLine;\n    }\n\n    @Override\n    public void setStatusLine(StatusLine arg0) {\n        this.statusLine = arg0;\n\n    }\n\uff1a\n\uff1a\n\u4ee5\u4e0b\u7565\n\uff1a\n\uff1a\n[\/code]<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h3>\n\n\n\n<p>\u30e2\u30c3\u30af\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u5916\u90e8\u30b5\u30fc\u30d0\u3092\u5efa\u3066\u305a\u306bHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30c6\u30b9\u30c8\u3092\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<br>\u307e\u305f\u4eca\u56de\u306f\u3054\u7d39\u4ecb\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001<br>\u30e2\u30c3\u30af\u306e\u547c\u3070\u308c\u305f\u56de\u6570\u3084\u3001\u30e2\u30c3\u30af\u306b\u6e21\u3055\u308c\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u691c\u8a3c\u3082\u53ef\u80fd\u3067\u3059\u3002<br>\u8a73\u3057\u304f\u306f\u3001 <a href=\"http:\/\/jmockit.org\/\">http:\/\/jmockit.org\/<\/a> \u3092\u3054\u53c2\u8003\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30c6\u30b9\u30c8\u306b\u304a\u3051\u308b\u30e2\u30c3\u30af\u6d3b\u7528\u306e\u3054\u7d39\u4ecb\u3067\u3057\u305f\u3002<\/p>\n<div class=\"opent-_2\" style=\"margin-top: 10px;margin-right: 10px;margin-bottom: 10px;margin-left: 10px;\" id=\"opent-2637106813\"><a href=\"https:\/\/www.opentone.co.jp\/backlog\/\" aria-label=\"twitter_backlogskt_new\"><img src=\"https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2023\/02\/twitter_backlogskt_new.jpg\" alt=\"\"  srcset=\"https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2023\/02\/twitter_backlogskt_new.jpg 1024w, https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2023\/02\/twitter_backlogskt_new-300x157.jpg 300w, https:\/\/www.opentone.co.jp\/ot-lab\/wp-content\/uploads\/sites\/11\/2023\/02\/twitter_backlogskt_new-768x401.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" width=\"384\" height=\"200\"   \/><\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002itou\u3067\u3059\u3002 \u4eca\u56de\u306f\u3001\u5916\u90e8\u30b5\u30fc\u30d0\u3078HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u6a5f\u80fd\u3092JUnit\u3067\u30c6\u30b9\u30c8\u3092\u3059\u308b<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[28],"tags":[],"class_list":["post-1191","post","type-post","status-publish","format-standard","hentry","category-web-system",""],"acf":[],"aioseo_notices":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"engage-mag-carousel-img":false,"engage-mag-carousel-img-landscape":false,"engage-mag-carousel-large-img":false,"engage-mag-carousel-large-img-landscape":false,"engage-mag-large-thumb":false,"engage-mag-small-thumb":false},"uagb_author_info":{"display_name":"ah106rx4o4","author_link":"https:\/\/www.opentone.co.jp\/ot-lab\/author\/ah106rx4o4"},"uagb_comment_info":3,"uagb_excerpt":"\u3053\u3093\u306b\u3061\u306f\u3002itou\u3067\u3059\u3002 \u4eca\u56de\u306f\u3001\u5916\u90e8\u30b5\u30fc\u30d0\u3078HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u6a5f\u80fd\u3092JUnit\u3067\u30c6\u30b9\u30c8\u3092\u3059\u308b","_links":{"self":[{"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/posts\/1191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/comments?post=1191"}],"version-history":[{"count":1,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/posts\/1191\/revisions"}],"predecessor-version":[{"id":1192,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/posts\/1191\/revisions\/1192"}],"wp:attachment":[{"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/media?parent=1191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/categories?post=1191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.opentone.co.jp\/ot-lab\/wp-json\/wp\/v2\/tags?post=1191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}