{"id":111,"date":"2017-10-12T23:10:50","date_gmt":"2017-10-12T14:10:50","guid":{"rendered":"http:\/\/ito-u-oti.com\/?p=111"},"modified":"2018-05-05T19:21:57","modified_gmt":"2018-05-05T10:21:57","slug":"post-111","status":"publish","type":"post","link":"https:\/\/ito-u-oti.com\/?p=111","title":{"rendered":"Spring Framework\u306eUnit\u30c6\u30b9\u30c8\u5b9f\u88c5\u65b9\u6cd5\u30001-5.Repository\u30c6\u30b9\u30c8(Junit4, spring-test, DBUnit, spring-test-dbunit) \u203bxlsx\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b"},"content":{"rendered":"<h2 id=\"outline__1\">Spring Framework\u306eUnit\u30c6\u30b9\u30c8\u5b9f\u88c5\u65b9\u6cd5\u30001-5.Repository\u30c6\u30b9\u30c8(Junit4, spring-test, DBUnit, spring-test-dbunit) \u203bxlsx\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b<\/h2>\n<div class=\"pointBox\">\u3010\u30b5\u30f3\u30d7\u30eb\u30bd\u30fc\u30b9\u3011<br \/>\n<a href=\"http:\/\/terasolunaorg.github.io\/guideline\/5.3.0.RELEASE\/ja\/index.html\">TERASOLUNA Server Framework for Java (5.x) Development Guideline<\/a><br \/>\n<a href=\"http:\/\/terasolunaorg.github.io\/guideline\/5.3.0.RELEASE\/ja\/Tutorial\/TutorialTodo.html\">\u30b5\u30f3\u30d7\u30eb\u30bd\u30fc\u30b9\u306f\u3053\u3061\u3089<\/a><br \/>\n\uff08\u3053\u308c\u306eMyBatis3\u3092\u4f7f\u7528\u3057\u305f\u30d1\u30bf\u30fc\u30f3\u3067\u4f5c\u6210\u3057\u3066\u307e\u3059\u3002\uff09<\/div>\n<h2 id=\"outline__2\">1-5.Repository\u30c6\u30b9\u30c8\u3000Junit4, spring-test, DBUnit, spring-test-dbunit\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u305f\u30d1\u30bf\u30fc\u30f3\u3000\u203bxlsx\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b<\/h2>\n<p>\u4eca\u56de\u306f<a href=\"https:\/\/ito-u-oti.com\/spring-framework%E3%81%AEunit%E3%83%86%E3%82%B9%E3%83%88%E5%AE%9F%E8%A3%85%E6%96%B9%E6%B3%95%E3%80%801-4-repository%E3%83%86%E3%82%B9%E3%83%88junit4-spring-test-dbunit-spring-test-dbunit\/\">1-4<\/a>\u3092\u3061\u3087\u3063\u3068\u4fee\u6b63\u3057\u3066\u3001xml\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u8a2d\u5b9a\u3092\u30a8\u30af\u30bb\u30eb\u30d5\u30a1\u30a4\u30eb\uff08xlsx\uff09\u304b\u3089\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u8a2d\u5b9a\u306b\u66f8\u304d\u63db\u3048\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<br \/>\nDBunit\u30e9\u30a4\u30d6\u30e9\u30ea\u3060\u3051\u3092\u4f7f\u7528\u3059\u308b\u3068\u3061\u3087\u3063\u3068\u9762\u5012\u306a\u611f\u3058\u306b\u306a\u308b\u306e\u3067\u3059\u304c\u3001spring-test-dbunit\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u9762\u5012\u304f\u3055\u3055\u304c\u5727\u5012\u7684\u306b\u8efd\u6e1b\u3055\u308c\u307e\u3059\u3002\u3055\u3059\u304c\u3067\u3059\u3002<\/p>\n<h3 id=\"outline__2_1\">\u3010pom.xml\u3011<\/h3>\n<p>1-4\u306e\u5b9f\u88c5\u6642\u3068\u540c\u3058\u3067\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;dependencies&gt;\r\n    &lt;dependency&gt;\r\n        &lt;groupId&gt;junit&lt;\/groupId&gt;\r\n        &lt;artifactId&gt;junit&lt;\/artifactId&gt;\r\n        &lt;scope&gt;test&lt;\/scope&gt;\r\n    &lt;\/dependency&gt;\r\n\r\n    &lt;dependency&gt;\r\n        &lt;groupId&gt;org.springframework&lt;\/groupId&gt;\r\n        &lt;artifactId&gt;spring-test&lt;\/artifactId&gt;\r\n        &lt;scope&gt;test&lt;\/scope&gt;\r\n    &lt;\/dependency&gt;\r\n\r\n    &lt;dependency&gt;\r\n        &lt;groupId&gt;org.dbunit&lt;\/groupId&gt;\r\n        &lt;artifactId&gt;dbunit&lt;\/artifactId&gt;\r\n        &lt;version&gt;2.5.4&lt;\/version&gt;\r\n        &lt;scope&gt;test&lt;\/scope&gt;\r\n   &lt;\/dependency&gt;\r\n&lt;\/dependencies&gt;\r\n<\/pre>\n<h3 id=\"outline__2_2\">\u3010\u30c6\u30b9\u30c8\u5bfe\u8c61\u30af\u30e9\u30b9\u3011<\/h3>\n<p>TodoRepository.java<br \/>\n\u30c6\u30b9\u30c8\u5bfe\u8c61\u306fupdate\u30e1\u30bd\u30c3\u30c9<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\npublic interface TodoRepository {\r\n   Todo findOne(String todoId);\r\n\r\n    Collection&lt;Todo&gt; findAll();\r\n\r\n    void create(Todo todo);\r\n\r\n    boolean update(Todo todo);\r\n\r\n    void delete(Todo todo);\r\n\r\n    long countByFinished(boolean finished);\r\n}\r\n<\/pre>\n<h3 id=\"outline__2_3\">\u3010\u30c6\u30b9\u30c8\u30af\u30e9\u30b9\u3011<\/h3>\n<p>TodoRepositoryTestVerSpringTestDBunitXlsx.java<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n@RunWith(SpringJUnit4ClassRunner.class)\r\n@ContextConfiguration(locations = {&quot;classpath:META-INF\/spring\/test-context-dbunit.xml&quot;})\r\n\/\/@TestExecutionListeners\u30fb\u30fb\u30fbTestContextManager\u306b\u6307\u5b9a\u3057\u305fListener\u3092\u8a2d\u5b9a\u3059\u308b\u3002\r\n\/\/\u6b63\u76f4\u3042\u307e\u308a\u826f\u304f\u308f\u304b\u3063\u3066\u306a\u3044\u3002spring-test-dbunit\u3092\u4f7f\u3046\u6642\u306f\u304a\u6c7a\u307e\u308a\u7684\u306a\u3084\u3064\u3089\u3057\u3044\u3002\r\n\/\/TransactionDbUnitTestExecutionListener\u304cspring-test-dbunit\u3067\u5fc5\u8981\u3060\u304b\u3089\u304b\u3082\u3002\r\n@TestExecutionListeners({\r\n    DependencyInjectionTestExecutionListener.class,\r\n    DirtiesContextTestExecutionListener.class,\r\n    TransactionDbUnitTestExecutionListener.class,\r\n    SqlScriptsTestExecutionListener.class\r\n})\r\n\/\/@DbUnitConfiguration\u30fb\u30fb\u30fb\u81ea\u4f5c\u3057\u305fDataSetLoader\u3092\u4f7f\u3046\u6642\u306b\u3053\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u8a2d\u5b9a\u3059\u308b\u3002\r\n\/\/xlsx\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307e\u305b\u308b\u3088\u3046\u306b\u3057\u305fDataSetLoader\u3092\u81ea\u4f5c\u3057\u305f\u305f\u3081\u8a2d\u5b9a\u3002\r\n@DbUnitConfiguration(dataSetLoader = XlsDataSetLoader.class)\r\n@Transactional\r\npublic class TodoRepositoryTestVerSpringTestDBunitXlsx {\r\n\r\n    @Inject\r\n    TodoRepository target;\r\n    \r\n    @Inject\r\n    JdbcTemplate jdbctemplate;\r\n    \r\n    @Before\r\n    public void setUp() {\r\n        \/\/spring-test-dbunit\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3068\u6bd4\u8f03\u3092\u884c\u3046\u305f\u3081\u3001\u51e6\u7406\u306a\u3057\r\n    }\r\n    \r\n    @Test\r\n    \/\/@DatabaseSetup\u30fb\u30fb\u30fbspring-test-dbuni\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3002\u30c6\u30b9\u30c8\u5b9f\u884c\u524d\u306b\u30c7\u30fc\u30bf\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3066\u304f\u308c\u308b\u3002\u30c6\u30b9\u30c8\u30af\u30e9\u30b9\u3054\u3068\u3001\u30e1\u30bd\u30c3\u30c9\u3054\u3068\u3067\u306e\u6307\u5b9a\u304c\u53ef\u80fd\r\n    @DatabaseSetup(&quot;classpath:META-INF\/dbunit\/test_data.xlsx&quot;)\r\n    \/\/@ExpectedDatabase\u30fb\u30fb\u30fbspring-test-dbuni\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3002\u30c6\u30b9\u30c8\u30e1\u30bd\u30c3\u30c9\u5b9f\u884c\u5f8c\u306e\u30c6\u30fc\u30d6\u30eb\u306e\u72b6\u614b\u3092\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3068\u6bd4\u8f03\u691c\u8a3c\u3057\u3066\u304f\u308c\u308b\u3002\r\n    \/\/\u30a8\u30e9\u30fc\u306e\u6642\u306fJunit\u306e\u4f8b\u306e\u30d0\u30fc\u304c\u8d64\u304f\u306a\u308b\u3002\r\n    @ExpectedDatabase(value=&quot;classpath:META-INF\/dbunit\/compare_data.xlsx&quot;, assertionMode = DatabaseAssertionMode.NON_STRICT)\r\n    public void testUpdate() {\r\n        \/\/\u30c6\u30b9\u30c8\u7528\u306e\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\uff08getTodoData\u30e1\u30bd\u30c3\u30c9\u306fDB\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308bprivate\u30e1\u30bd\u30c3\u30c9\u3002\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3092\u66f8\u304d\u63db\u3048\u3066\u66f4\u65b0\u3059\u308b\u3002\uff09\r\n        String todoId = &quot;cceae402-c5b1-440f-bae2-7bee19dc17fb&quot;;\r\n        Todo testDataTodo = getTodoData(todoId);\r\n        testDataTodo.setFinished(true);\r\n        \r\n        \/\/update\u30e1\u30bd\u30c3\u30c9\u306e\u30c6\u30b9\u30c8\r\n        boolean actTodo = target.update(testDataTodo);\r\n        \r\n        \/\/\u7d50\u679c\u691c\u8a3c\r\n        assertEquals(actTodo, true);\r\n        \r\n    }\r\n}\r\n<\/pre>\n<p>@DbUnitConfiguration\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u65b0\u305f\u306b\u8ffd\u52a0\u3057\u3066\u307e\u3059\u3002<br \/>\n\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u6642\u306b\u30c7\u30d5\u30a9\u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u5f62\u5f0f\u306fxml\u5f62\u5f0f\u306a\u306e\u3067\u3059\u304c\u3001<br \/>\nxlsx\u3084csv\u30d5\u30a1\u30a4\u30eb\u3067\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u305f\u3044\uff01\u3068\u3044\u3046\u3068\u304d\u306f\u3053\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3067dataSetLoader\u30af\u30e9\u30b9\u3092\u66f8\u304d\u63db\u3048\u3066\u3084\u308a\u307e\u3059\u3002<\/p>\n<p>XlsDataSetLoader.java<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n\/\/AbstractDataSetLoader\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3059\u308b\r\npublic class XlsDataSetLoader extends AbstractDataSetLoader {\r\n\r\n    \/\/\u6a19\u6e96\u306exml\u5f62\u5f0f\u304b\u3089xlsl\u5f62\u5f0f\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u8aad\u307f\u8fbc\u3080\u8a2d\u5b9a\u306b\u5909\u66f4\uff08override\uff09\u3059\u308b\r\n    @Override\r\n    protected IDataSet createDataSet(Resource resource) throws Exception {\r\n        \/\/ TODO \u81ea\u52d5\u751f\u6210\u3055\u308c\u305f\u30e1\u30bd\u30c3\u30c9\u30fb\u30b9\u30bf\u30d6\r\n        try(InputStream inputStream = resource.getInputStream()) {\r\n            return new XlsDataSet(inputStream);\r\n        }\r\n    }\r\n}\r\n<\/pre>\n<p>\u3053\u3044\u3064\u304c\u4eca\u56de\u306e\u30df\u30bd\u3067\u3059\u3002<br \/>\nAbstractDataSetLoader\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3055\u305b\u3066\u3001xlsx\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307e\u305b\u308b\u3088\u3046\u306boverride\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3 id=\"outline__2_4\">\u3010\u305d\u306e\u4ed6\u8a2d\u5b9a\u3011<\/h3>\n<p>test-context-dbunit.xml<br \/>\nDBunit\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u5c11\u3057test-context.xml\uff08<a href=\"https:\/\/ito-u-oti.com\/spring-framework%E3%81%AEunit%E3%83%86%E3%82%B9%E3%83%88%E5%AE%9F%E8%A3%85%E6%96%B9%E6%B3%95%E3%80%801-1-repository%E3%83%86%E3%82%B9%E3%83%88junit4-spring-test\/\">1-1\u53c2\u7167<\/a>\uff09\u3092\u66f8\u304d\u63db\u3048\u3066\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3092\u3057\u306a\u3044\u3068DBunit\u304c\u3046\u307e\u304f\u52d5\u3044\u3066\u304f\u308c\u306a\u3044\u3089\u3057\u3044\u30fb\u30fb\u30fb<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;bean id=&quot;log4jDataSource&quot; class=&quot;net.sf.log4jdbc.Log4jdbcProxyDataSource&quot;&gt;\r\n    &lt;constructor-arg index=&quot;0&quot; ref=&quot;realDataSource&quot; \/&gt;\r\n&lt;\/bean&gt;\r\n    \r\n&lt;bean id=&quot;dataSource&quot; class=&quot;org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy&quot;&gt;\r\n    &lt;constructor-arg index=&quot;0&quot; ref=&quot;log4jDataSource&quot; \/&gt;\r\n&lt;\/bean&gt;\r\n<\/pre>\n<p>test_data.xlsx<br \/>\n\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u7528\u306e\u30c7\u30fc\u30bf\u3067\u3059\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2017\/10\/excel1.png\" alt=\"\" width=\"1015\" height=\"427\" class=\"alignnone size-full wp-image-113\" \/><br \/>\n\u30b7\u30fc\u30c8\u540d\u304c\u30c6\u30fc\u30d6\u30eb\u540d<br \/>\n1\u884c\u76ee\u304c\u30ab\u30e9\u30e0\u540d<br \/>\n2\u884c\u76ee\u4ee5\u964d\u304c\u30ab\u30e9\u30e0\u306b\u5bfe\u3057\u3066\u306e\u30c7\u30fc\u30bf<br \/>\n\u306b\u306a\u3063\u3066\u307e\u3059\u3002<br \/>\n\u6ce8\u610f\u3059\u308b\u3079\u304d\u306a\u306e\u306f\u3001<br \/>\n\u30fb\u30a8\u30af\u30bb\u30eb\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3088\u304f\u3042\u308b\u300csheet1\u300d\u3068\u304b\u306f\u6d88\u3059\u3053\u3068\u3002<br \/>\n\u30fb\u30ab\u30e9\u30e0\u540d\u3084\u30c7\u30fc\u30bf\u304c\u5165\u308b\u3068\u3053\u308d\u306e\u8868\u793a\u5f62\u5f0f\u3092\u300c\u6587\u5b57\u5217\u300d\u306b\u8a2d\u5b9a\u3057\u3001\u305d\u308c\u4ee5\u5916\u306e\u8868\u793a\u5f62\u5f0f\u306f\u300c\u6a19\u6e96\u300d\u306b\u3059\u308b\u3053\u3068\u3002<br \/>\n\u4f8b\u3067\u8a00\u3046\u30681\u884c\u76ee\uff5e4\u884c\u76ee\u306e\uff21\u5217\uff5e\uff24\u5217\u306f\u300c\u6587\u5b57\u5217\u300d\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u3066\u3001\u305d\u308c\u4ee5\u5916\u306f\u300c\u6a19\u6e96\u300d\u306b\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305d\u3046\u3057\u306a\u3044\u3068\u30c7\u30fc\u30bf\u304c\u7a7a\u3067\u3059\u3088\u7684\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002<\/p>\n<p>compare_data.xlsx<br \/>\n\u30c6\u30b9\u30c8\u30e1\u30bd\u30c3\u30c9\u5b9f\u884c\u5f8c\u306e\u691c\u8a3c\u7528\u30c7\u30fc\u30bf\u3067\u3059\u3002<br \/>\n\u30c6\u30b9\u30c8\u30e1\u30bd\u30c3\u30c9\u306e\u5185\u5bb9\u304c\u3001ID&#8221;cceae402-c5b1-440f-bae2-7bee19dc17fb&#8221;\u306e\u30c7\u30fc\u30bf\u306b\u5bfe\u3057\u3066Finished\u3092true\u306b\u3059\u308b\u5185\u5bb9\u306a\u306e\u3067\u3001<br \/>\nID=&#8221;cceae402-c5b1-440f-bae2-7bee19dc17fb&#8221;\u306eFINISHED\u3092&#8221;true&#8221;\u306b\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2017\/10\/excel2.png\" alt=\"\" width=\"1016\" height=\"431\" class=\"alignnone size-full wp-image-114\" \/><\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001xlsx\u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a\u306f\u3061\u3087\u3053\u3063\u3068\u5909\u3048\u308b\u3060\u3051\u3067\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<br \/>\ncsv\u3088\u308a\u7c21\u5358\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p><span class=\"markerYellow\">\u30b5\u30f3\u30d7\u30eb\u30bd\u30fc\u30b9\u306fgithub\u3067\u516c\u958b\u3057\u3066\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/github.com\/itouoti12\/Spring-Unit-Test-pattern5\">Spring-Unit-Test-pattern5<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spring Framework\u306eUnit\u30c6\u30b9\u30c8\u5b9f\u88c5\u65b9\u6cd5\u30001-5.Repository\u30c6\u30b9\u30c8(Jun [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":93,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45,25,28,40,24,1],"tags":[16,47,11,13,10,42,46,41],"class_list":["post-111","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dbunit","category-maven","category-mybatis","category-repository-test","category-spring","category-1","tag-dbunit","tag-excel","tag-junit","tag-mybatis","tag-spring","tag-spring-test","tag-spring-test-dbunit","tag-unittest"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/111","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=111"}],"version-history":[{"count":8,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/111\/revisions"}],"predecessor-version":[{"id":434,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/111\/revisions\/434"}],"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=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}