{"id":1077,"date":"2019-09-16T21:25:12","date_gmt":"2019-09-16T12:25:12","guid":{"rendered":"https:\/\/ito-u-oti.com\/?p=1077"},"modified":"2020-07-10T17:22:27","modified_gmt":"2020-07-10T08:22:27","slug":"post-1077","status":"publish","type":"post","link":"https:\/\/ito-u-oti.com\/?p=1077","title":{"rendered":"\u3010SpringBoot\u3011\u3010Junit5\u3011\u7e70\u308a\u8fd4\u3057Test\u306e\u5b9f\u88c5\u65b9\u6cd5\uff12\u30d1\u30bf\u30fc\u30f3\uff08DataPattern,ParameterizedTest\uff09"},"content":{"rendered":"\n<p>\u4f55\u306b\u3082\u4f9d\u5b58\u3057\u306a\u3044\u4e00\u756a\u30b7\u30f3\u30d7\u30eb\u306a\u7e70\u308a\u8fd4\u3057\u30c6\u30b9\u30c8\u3068\u3001<br>Junit5\u306eParameterizedTest\u306e\u5b9f\u88c5\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__1\" class=\"wp-block-heading\">\u30c6\u30b9\u30c8\u5bfe\u8c61\u306e\u8aac\u660e<\/h2>\n\n\n\n<p>\u4e09\u89d2\u5f62\u306e\u9762\u7a4d\u3092\u6c42\u3081\u308b\u3068\u3044\u3046\u30b7\u30f3\u30d7\u30eb\u306a\u30ed\u30b8\u30c3\u30af\u3068\u3001<br>\u5165\u529b\u5024\u3092\u7279\u5b9a\u306e\u5024\u3057\u304b\u8a8d\u3081\u306a\u3044\u30ed\u30b8\u30c3\u30af\u3002<\/p>\n\n\n\n<p>DemoService<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\npackage com.example.demo.service;\n\nimport lombok.RequiredArgsConstructor;\nimport org.springframework.stereotype.Service;\n\n@Service\n@RequiredArgsConstructor\nclass DemoService {\n\n    int calculateTriangleArea(int base, int height) {\n        return (base * height) \/ 2;\n    }\n\n    boolean validation(int height){\n        return height == 3 || height == 5;\n    }\n}\n<\/pre><\/div>\n\n\n<p>\u6700\u521d\u306e\u30c6\u30b9\u30c8\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\n    @Test\n    void normalTest() {\n        \/\/GIVEN\n        int base = 6;\n        int height = 3;\n        int excepted = 9;\n\n        \/\/WHEN\n        int actual = target.calculateTriangleArea(base, height);\n\n        \/\/THEN\n        assertThat(actual).isEqualTo(excepted);\n    }\n<\/pre><\/div>\n\n\n<h2 id=\"outline__2\" class=\"wp-block-heading\">DataPattern\u5b9f\u88c5<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\n    @Test\n    void dataPatternTest() {\n        \/\/GIVEN\n        for (DataPattern param : List.of(\n                new DataPattern(6, 3, 9),\n                new DataPattern(9, 4, 18),\n                new DataPattern(7, 4, 14)\n        )) {\n            \/\/WHEN\n            int actual = target.calculateTriangleArea(param.base, param.height);\n\n            \/\/THEN\n            assertThat(actual).isEqualTo(param.excepted);\n        }\n    }\n\n    class DataPattern {\n        int base;\n        int height;\n        int excepted;\n\n        DataPattern(int base, int height, int excepted) {\n            this.base = base;\n            this.height = height;\n            this.excepted = excepted;\n        }\n    }\n<\/pre><\/div>\n\n\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u683c\u7d0d\u7528\u306e\u30a4\u30f3\u30ca\u30fc\u30af\u30e9\u30b9\u3092\u4f5c\u308a\u3001\u30c6\u30b9\u30c8\u30e1\u30bd\u30c3\u30c9\u4e0a\u3067\u307e\u3068\u3081\u3066\u751f\u6210\u3057\u305f\u3082\u306e\u3092\u4e00\u6c17\u306b\u30c6\u30b9\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img decoding=\"async\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2019\/09\/image.png\" alt=\"\" class=\"wp-image-1093\" width=\"245\" height=\"22\"\/><figcaption>\u30c6\u30b9\u30c8\u304c\u5931\u6557\u3057\u305f\u6642\u306b\u3001\u5177\u4f53\u7684\u306b\u3069\u3053\u3067Fail\u3068\u306a\u3063\u305f\u304b\u306f\u308f\u304b\u3089\u306a\u3044\u3002<\/figcaption><\/figure>\n\n\n\n<h2 id=\"outline__3\" class=\"wp-block-heading\">ParameterizedTest\u5b9f\u88c5<\/h2>\n\n\n\n<p>Junit5\u3067\u53ef\u80fd\u306a\u30c6\u30b9\u30c8\u306e\u3084\u308a\u65b9\u3067\u3059\u3002<br>ParameterizedTest\u306e\u5b9f\u88c5\u65b9\u6cd5\u3068\u3057\u3066\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u6e21\u3057\u65b9\u3067\u8907\u6570\u306e\u3084\u308a\u65b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__3_1\" class=\"wp-block-heading\">Junit5\u306e\u6e96\u5099<\/h3>\n\n\n\n<p>jar\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n        &lt;dependency&gt;\n            &lt;groupId&gt;org.junit.jupiter&lt;\/groupId&gt;\n            &lt;artifactId&gt;junit-jupiter-params&lt;\/artifactId&gt;\n            &lt;scope&gt;test&lt;\/scope&gt;\n        &lt;\/dependency&gt;\n\n        &lt;dependency&gt;\n            &lt;groupId&gt;org.junit.platform&lt;\/groupId&gt;\n            &lt;artifactId&gt;junit-platform-commons&lt;\/artifactId&gt;\n        &lt;\/dependency&gt;\n\n        &lt;!-- https:\/\/mvnrepository.com\/artifact\/org.junit.jupiter\/junit-jupiter --&gt;\n        &lt;dependency&gt;\n            &lt;groupId&gt;org.junit.jupiter&lt;\/groupId&gt;\n            &lt;artifactId&gt;junit-jupiter&lt;\/artifactId&gt;\n            &lt;scope&gt;test&lt;\/scope&gt;\n        &lt;\/dependency&gt;\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\"><li>junit-jupiter-params<br>ParameterizedTest\u3067\u4f7f\u7528\u3059\u308b\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u6709\u52b9\u306b\u3057\u307e\u3059<br><\/li><li>junit-platform-commons<br>ParameterizedTest\u3067\u306e\u5024\u306e\u6e21\u3057\u65b9\u306e\u4e00\u3064\u3067\u3042\u308b\u3001<br>CsvSource\u3067\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<br><\/li><li>junit-jupiter<br>Junit5\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/li><\/ul>\n\n\n\n<h3 id=\"outline__3_2\" class=\"wp-block-heading\">@ArgumentsSource<\/h3>\n\n\n\n<p>DataPattern\u5b9f\u88c5\u306e\u3088\u3046\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u7528\u306e\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001<br>@ArgumentsSource\u306e\u5f15\u6570\u3067\u30af\u30e9\u30b9\u3054\u3068\u6e21\u3057\u307e\u3059\u3002<br>\u30d1\u30e9\u30e1\u30fc\u30bf\u7528\u306e\u30af\u30e9\u30b9\u306b\u306fArgumentProvider\u3092implements\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\n    @ParameterizedTest\n    @ArgumentsSource(ArgumentsParameterTest.class)\n    void ArgumentsParameterTest(ArgumentsParameterTest args) {\n\n        \/\/WHEN\n        int actual = target.calculateTriangleArea(args.base, args.height);\n\n        \/\/THEN\n        assertThat(actual).isEqualTo(args.expected);\n    }\n\n    @Data\n    @NoArgsConstructor\n    @AllArgsConstructor\n    private static class ArgumentsParameterTest implements ArgumentsProvider {\n        int base;\n        int height;\n        int expected;\n\n        @Override\n        public Stream&lt;? extends Arguments&gt; provideArguments(ExtensionContext extensionContext) {\n            return Stream.of(\n                    Arguments.of(new ArgumentsParameterTest(6, 2, 6)),\n                    Arguments.of(new ArgumentsParameterTest(9, 4, 18)),\n                    Arguments.of(new ArgumentsParameterTest(7, 4, 14))\n            );\n        }\n    }\n<\/pre><\/div>\n\n\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u7528\u306e\u30af\u30e9\u30b9\u306fstatic\u30af\u30e9\u30b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6e21\u3057\u305f\u3044\u6642\u3084\u3001\u3061\u3087\u3063\u3068\u8907\u96d1\u306aAssertion\u3092\u304b\u3051\u305f\u3044\u6642\u306b\u4f7f\u3048\u307e\u3059\u3002<br>\u3082\u3061\u308d\u3093\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u6e21\u3057\u305f\u30af\u30e9\u30b9\u306e\u30e1\u30bd\u30c3\u30c9\u3082\u4f7f\u3048\u307e\u3059\u3002<br><\/p>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img decoding=\"async\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2019\/09\/image-1.png\" alt=\"\" class=\"wp-image-1095\" width=\"525\" height=\"74\"\/><figcaption>\u30d1\u30e9\u30e1\u30fc\u30bf\u3054\u3068\u3067\u3069\u306e\u3088\u3046\u306a\u30c6\u30b9\u30c8\u304b\u5206\u304b\u308b\u3002<br>\u30c6\u30b9\u30c8Fail\u6642\u3082Fail\u3068\u306a\u3063\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u3060\u3051\u8d64\u304f\u306a\u308b\u306e\u3067\u5206\u304b\u308a\u3084\u3059\u3044\u3002<\/figcaption><\/figure>\n\n\n\n<p>\u30d3\u30eb\u30c0\u30fc\u30d1\u30bf\u30fc\u30f3\u3092\u4f7f\u3063\u3066\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u751f\u6210\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\n    @ParameterizedTest\n    @ArgumentsSource(ArgumentsParameterTestBuilder.class)\n    void ArgumentsParameterTestBuilder(ArgumentsParameterTestBuilder args) {\n\n        \/\/WHEN\n        int actual = target.calculateTriangleArea(args.base, args.height);\n\n        \/\/THEN\n        assertThat(actual).isEqualTo(args.expected);\n    }\n\n    @Builder\n    @Data\n    @NoArgsConstructor\n    @AllArgsConstructor\n    private static class ArgumentsParameterTestBuilder implements ArgumentsProvider {\n        int base;\n        int height;\n        int expected;\n\n        @Override\n        public Stream&lt;? extends Arguments&gt; provideArguments(ExtensionContext extensionContext) {\n            return Stream.of(\n                    Arguments.of(ArgumentsParameterTestBuilder.builder().base(6).height(2).expected(6).build()),\n                    Arguments.of(ArgumentsParameterTestBuilder.builder().base(9).height(4).expected(18).build()),\n                    Arguments.of(ArgumentsParameterTestBuilder.builder().base(7).height(4).expected(14).build())\n            );\n        }\n    }\n<\/pre><\/div>\n\n\n<h3 id=\"outline__3_3\" class=\"wp-block-heading\">@MethodSource<\/h3>\n\n\n\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u7528\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f5c\u6210\u3057\u3066\u3001\u30c6\u30b9\u30c8\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306b\u6e21\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\n    @ParameterizedTest\n    @MethodSource(&quot;methodParameter&quot;)\n    void methodParameterTest(int base, int height, int expected) {\n\n        \/\/WHEN\n        int actual = target.calculateTriangleArea(base, height);\n\n        \/\/THEN\n        assertThat(actual).isEqualTo(expected);\n    }\n\n    static Stream&lt;Arguments&gt; methodParameter() {\n        return Stream.of(\n                Arguments.of(6, 2, 6),\n                Arguments.of(9, 4, 18),\n                Arguments.of(7, 4, 14)\n        );\n    }\n<\/pre><\/div>\n\n\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6e21\u3059\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<br>\u307e\u305f@ArgumentsSource\u3067\u306fNest\u3055\u308c\u305f\u30af\u30e9\u30b9\u306e\u4e2d\u306b\u306f\u30d1\u30e9\u30e1\u30fc\u30bf\u30af\u30e9\u30b9\u3092\u4f5c\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u304c\u3001<br>@MethodSource\u306fTestInstance\u3092\u4f7f\u3046\u3053\u3068\u3067Nest\u30af\u30e9\u30b9\u5185\u306b\u3082\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\n    @Nested\n    @TestInstance(TestInstance.Lifecycle.PER_CLASS)\n    class nested {\n\n        @ParameterizedTest\n        @MethodSource(&quot;methodParameterNest&quot;)\n        void methodParameterTestNested(int base, int height, int expected) {\n\n            \/\/WHEN\n            int actual = target.calculateTriangleArea(base, height);\n\n            \/\/THEN\n            assertThat(actual).isEqualTo(expected);\n        }\n\n        Stream&lt;Arguments&gt; methodParameterNest() {\n            return Stream.of(\n                    Arguments.of(6, 2, 6),\n                    Arguments.of(9, 4, 18),\n                    Arguments.of(7, 4, 14)\n            );\n        }\n    }\n<\/pre><\/div>\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img decoding=\"async\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2019\/09\/image-2.png\" alt=\"\" class=\"wp-image-1096\" width=\"309\" height=\"74\"\/><figcaption>\u5f15\u6570\u3060\u3051\u304c\u30b7\u30f3\u30d7\u30eb\u306b\u8868\u793a\u3055\u308c\u308b\u3002<\/figcaption><\/figure>\n\n\n\n<h3 id=\"outline__3_4\" class=\"wp-block-heading\">@CsvSource<\/h3>\n\n\n\n<p>\u8907\u6570\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u4e2d\u3067Csv\u5f62\u5f0f\u3067\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002 <br>\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u578b\u306f\u6697\u9ed9\u7684\u306b\u5909\u63db\u3055\u308c\u307e\u3059\u3002<br>\u65e5\u4ed8\u3060\u3063\u305f\u3089\u300cyyyy-MM-dd\u300d\u3068\u304b\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\n    @ParameterizedTest\n    @CsvSource({\n            &quot;6,2,6&quot;,\n            &quot;9,4,18&quot;,\n            &quot;7,4,14&quot;\n    })\n    void CsvParameterTest(int base, int height, int expected) {\n\n        \/\/WHEN\n        int actual = target.calculateTriangleArea(base, height);\n\n        \/\/THEN\n        assertThat(actual).isEqualTo(expected);\n    }\n<\/pre><\/div>\n\n\n<p>Nest\u30af\u30e9\u30b9\u306e\u4e2d\u3067\u3082\u4f7f\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img decoding=\"async\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2019\/09\/image-3.png\" alt=\"\" class=\"wp-image-1097\" width=\"219\" height=\"71\"\/><figcaption> @MethodSource \u3068\u540c\u3058\u8868\u793a\u5f62\u5f0f\u3002<\/figcaption><\/figure>\n\n\n\n<h3 id=\"outline__3_5\" class=\"wp-block-heading\">@ValueSource<\/h3>\n\n\n\n<p>\u4e00\u3064\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u6e21\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\n    @ParameterizedTest\n    @ValueSource(ints = {1, 2, 4, 6})\n    void ValueParameterTestValue(int height) {\n\n        \/\/WHEN\n        boolean actual = target.validation(height);\n\n        \/\/THEN\n        assertThat(actual).isFalse();\n    }\n<\/pre><\/div>\n\n\n<p>ParameterizedTest\u306e\u4e2d\u3067\u306f\u4e00\u756a\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002<br>\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30c1\u30a7\u30c3\u30af\u306e\u30c6\u30b9\u30c8\u3068\u304b\u3059\u308b\u6642\u306b\u4f7f\u3044\u307e\u3059\u3002<br> Nest\u30af\u30e9\u30b9\u306e\u4e2d\u3067\u3082\u4f7f\u3048\u307e\u3059\u3002 <\/p>\n\n\n\n<p>\u3053\u306e\u30c6\u30b9\u30c8\u3060\u3051DemoService\u306evalidation\u30e1\u30bd\u30c3\u30c9\u306b\u5bfe\u3057\u3066\u30c6\u30b9\u30c8\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img decoding=\"async\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2019\/09\/image-4.png\" alt=\"\" class=\"wp-image-1098\" width=\"209\" height=\"93\"\/><\/figure>\n\n\n\n<h2 id=\"outline__4\" class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u5927\u6982\u306e\u30c6\u30b9\u30c8\u306f\u5168\u90e8@MethodSource\u3067\u3084\u3063\u3066\u3057\u307e\u3048\u308b\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<br>\u3082\u3063\u3068\u7c21\u5358\u306b\u3067\u304d\u305d\u3046\u3060\u3068\u601d\u3063\u305f\u3089@CsvSource\u304b@ValueSource\u3067\u3002<br>@ArgumentsSource\u306f\u30c6\u30b9\u30c8\u306e\u5b9f\u88c5\u81ea\u4f53\u3082\u3061\u3087\u3063\u3068\u30d1\u30ef\u30fc\u4f7f\u3044\u307e\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f55\u306b\u3082\u4f9d\u5b58\u3057\u306a\u3044\u4e00\u756a\u30b7\u30f3\u30d7\u30eb\u306a\u7e70\u308a\u8fd4\u3057\u30c6\u30b9\u30c8\u3068\u3001Junit5\u306eParameterizedTest\u306e\u5b9f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":93,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,6],"tags":[260,263,11,262,261,265,264],"class_list":["post-1077","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-junit","category-programing","tag-argumentssource","tag-csvsource","tag-junit","tag-jupiter","tag-methodsource","tag-parameterizedtest","tag-valuesource"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/1077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1077"}],"version-history":[{"count":8,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/1077\/revisions"}],"predecessor-version":[{"id":1213,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/1077\/revisions\/1213"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/media\/93"}],"wp:attachment":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}