{"id":172,"date":"2022-07-24T13:14:30","date_gmt":"2022-07-24T04:14:30","guid":{"rendered":"https:\/\/sheltie-garage.xyz\/tech\/?p=172"},"modified":"2022-07-24T13:14:32","modified_gmt":"2022-07-24T04:14:32","slug":"junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92","status":"publish","type":"post","link":"https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\/","title":{"rendered":"JUnit\u3068Mockito\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u7df4\u7fd2"},"content":{"rendered":"\n<p>\u65b0\u3057\u3044\u4f1a\u793e\u3067\u306f\u304d\u3061\u3093\u3068\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3092\u66f8\u304f\u6587\u5316\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u7df4\u7fd2\u306e\u305f\u3081Mockito\u306e\u5229\u7528\u65b9\u6cd5\u3092\u7df4\u7fd2\u3057\u3066\u3044\u307e\u3057\u305f\u3002<br>\u4eca\u307e\u3067\u7d4c\u9a13\u3057\u305f\u4f1a\u793e\u3067\u306f\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3092\u4f5c\u308b\u6587\u5316\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u4ed5\u4e8b\u3067\u304b\u306a\u308a\u5358\u4f53\u30c6\u30b9\u30c8\u4f5c\u6210\u306b\u624b\u9593\u53d6\u3063\u3066\u3044\u307e\u3059\u3002<br>\u5c11\u3057\u3067\u3082\u3053\u306e\u9045\u308c\u3092\u53d6\u308a\u623b\u3057\u305f\u3044\uff01\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u308a\u3001Mockito\u306e\u7df4\u7fd2\u3092\u3057\u3066\u307f\u307e\u3057\u305f<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4eca\u56de\u306e\u30d7\u30ed\u30b0\u30e9\u30e0<\/h2>\n\n\n\n<p>\u4eca\u56de\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059<br><a href=\"https:\/\/github.com\/sheltie-fusafusa\/JUnitMockitoPractice\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/sheltie-fusafusa\/JUnitMockitoPractice<\/a><\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u4e0a\u8a18\u30d7\u30ed\u30b0\u30e9\u30e0\u5185\u3067\u500b\u4eba\u7684\u306b\u8a70\u307e\u3063\u305f\u90e8\u5206\u3092\u629c\u7c8b\u3057\u3066\u7d39\u4ecb\u3057\u307e\u3059<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u305d\u3082\u305d\u3082Mockito\u3068\u306f\uff1f<\/h2>\n\n\n\n<p>\u4eca\u56de\u59cb\u3081\u3066Mockito\u306b\u89e6\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u3082\u305d\u3082\u3053\u308c\u304c\u4f55\u306a\u306e\u304b\uff1f\u4f55\u306e\u305f\u3081\u306b\u5fc5\u8981\u306a\u306e\u304b\uff1f\u3082\u308f\u304b\u3089\u306a\u3044\u72b6\u614b\u3067\u3057\u305f\u3002<br>\u8efd\u304f\u8abf\u3079\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7406\u89e3\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><strong>Mockito\u3068\u306f<\/strong><br> \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30e2\u30c3\u30af\u3092\u7c21\u5358\u306b\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3002Mock\u5316\u3057\u305f\u3044\u30af\u30e9\u30b9\u3092\u6307\u5b9a\u3057\u3066\u3001\u5404\u30e1\u30bd\u30c3\u30c9\u304c\u547c\u3073\u51fa\u3055\u308c\u305f\u3068\u304d\u306e\u623b\u308a\u5024\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u30c6\u30b9\u30c8\u304c\u884c\u3048\u308b<\/p>\n\n\n\n<p><strong>\u306a\u305cMock\u5316\u304c\u5fc5\u8981\u306a\u306e\u304b\uff1f<\/strong><br> \u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u5358\u4f53\u3067\u306f\u306a\u304f\u3001\u5225\u306e\u30b7\u30b9\u30c6\u30e0\uff08DB\u3084API\uff09\u3084\u30e9\u30a4\u30d6\u30e9\u30ea\u306a\u3069\u306e\u4ed6\u30d1\u30fc\u30c4\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u4f5c\u6210\u3055\u308c\u308b\u3002\u3042\u308b\u6a5f\u80fd\u306e\u30c6\u30b9\u30c8\u3092\u884c\u304a\u3046\u3068\u3057\u305f\u6642\u3001DB\u306b\u51e6\u7406\u306b\u4f7f\u7528\u3059\u308b\u30c7\u30fc\u30bf\u306e\u767b\u9332\u304c\u7121\u304b\u3063\u305f\u308a\u3001\u9023\u643a\u5148\u306e\u5916\u90e8API\u304c\u672a\u5b8c\u6210\u3060\u3068\u3001\u5f53\u7136\u30c6\u30b9\u30c8\u304c\u884c\u3048\u306a\u3044\u3002\u305d\u3053\u3067DB\u304b\u3089\u5024\u3092\u8fd4\u3059\u51e6\u7406\u3084\u3001\u5916\u90e8API\u3068\u9023\u643a\u3059\u308b\u90e8\u5206\u3092Mock\u5316\u3059\u308b\u3053\u3068\u3067\u30c6\u30b9\u30c8\u306e\u90fd\u5408\u306e\u826f\u3044\u30c7\u30fc\u30bf\u304c\u8fd4\u5374\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u30c6\u30b9\u30c8\u304c\u884c\u3048\u308b\u3088\u3046\u306b\u306a\u308b<\/p>\n\n\n\n<p>\u3068\u3001\u7406\u89e3\u3057\u307e\u3057\u305f<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b7\u30f3\u30d7\u30eb\u306a\u30af\u30e9\u30b9\u3067\u3001\u30c6\u30b9\u30c8\u3092\u884c\u3063\u3066\u307f\u308b<\/h2>\n\n\n\n<p>\u4eca\u56de\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>package org.example.service;\n\npublic class ExampleService {\n\n    public int plus(int a, int b){\n        return a + b;\n    }\n\n    public int square(int a){\n        return a * a;\n    }\n\n    public int minus(int a, int b){\n        return a - b;\n    }\n\n    public int divide(int a, int b){\n        if(b == 0){\n            return 0;\n        }\n\n        return a \/ b;\n    }\n\n    \/\/ \u8db3\u3057\u7b97\u3057\u305f\u5f8c\u306b2\u4e57\u3059\u308b\n    public int plusSquare(int a, int b){\n\n        int result = plus(a, b);\n        return square(result);\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u8db3\u3057\u7b97\u3084\u5f15\u304d\u7b97\u3001\u7d2f\u4e57\u3092\u8a08\u7b97\u3059\u308b\u3088\u3046\u306a\u30b7\u30f3\u30d7\u30eb\u306a\u5185\u5bb9\u306e\u30af\u30e9\u30b9\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066\u5358\u4f53\u30c6\u30b9\u30c8\u3092\u8a18\u8ff0\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>package org.example.service;\n\nimport org.junit.jupiter.api.Test;\n\nimport static org.junit.jupiter.api.Assertions.assertEquals;\nimport static org.mockito.ArgumentMatchers.any;\nimport static org.mockito.ArgumentMatchers.anyInt;\nimport static org.mockito.Mockito.mock;\nimport static org.mockito.Mockito.when;\n\npublic class ExampleServiceTest {\n\n    @Test\n    public void plusTest(){\n\n        \/\/ \u30d7\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u304c\u6b63\u3057\u304f\u52d5\u304f\u3053\u3068\u3092\u78ba\u8a8d\n        ExampleService exampleService = new ExampleService();\n        int result = exampleService.plus(1, 2);\n\n        assertEquals(result, 1 + 2);\n    }\n\n    @Test\n    public void plusSquareTest(){\n\n        \/\/ \u30e2\u30c3\u30af\u6e96\u5099\n        ExampleService exampleServiceMock = mock(ExampleService.class);\n        when(exampleServiceMock.plus(anyInt(), anyInt())).thenReturn(10);\n\n        \/\/ \u4e0a\u8a18\u3067plus\u306eMock\u3092\u4f5c\u6210\u3057\u3001\u5fc5\u305a10\u3092\u8fd4\u5374\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u305f\u3081\n        \/\/ \u4ee5\u4e0b\u306e\u51e6\u7406\u3067\u306f2\u3067\u306f\u306a\u304f\u300110\u304c\u8fd4\u5374\u3055\u308c\u308b\n        int result = exampleServiceMock.plus(1,1);\n\n        assertEquals(10, result);\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u57fa\u672c\u7684\u306a\u30c6\u30b9\u30c8\u65b9\u6cd5\u306f<br>\u30fb\u30c6\u30b9\u30c8\u3057\u305f\u3044\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059<br>\u30fbassert\u301c\u30e1\u30bd\u30c3\u30c9\u3067\u5024\u3092\u6bd4\u8f03\u3059\u308b<br>\u306e\u6d41\u308c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>plusSquareTest\u30e1\u30bd\u30c3\u30c9\u3067\u5b9f\u969b\u306bMock\u3092\u4f5c\u6210\u3057\u3001plus\u30e1\u30bd\u30c3\u30c9\u3067 10\u3092\u8fd4\u5374\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001plus(1,1)\u306e\u7d50\u679c\u306f2\u3067\u306f\u306a\u304f10\u304c\u8fd4\u5374\u3055\u308c\u3001assertEquals(10, result);\u306e\u7d50\u679c\u3001\u30c6\u30b9\u30c8OK\u3068\u3044\u3046\u52d5\u304d\u3068\u306a\u308a\u307e\u3059<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u554f\u984c\u306fstatic\u30e1\u30bd\u30c3\u30c9\u306e\u30c6\u30b9\u30c8<\/h2>\n\n\n\n<p>Mockito\u3067\u306fstatic\u30e1\u30bd\u30c3\u30c9\u306e\u30c6\u30b9\u30c8\u30823.4.0\u304b\u3089\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u305f\u3068\u306e\u3053\u3068\u3002<br>\u4ee5\u4e0b\u306e\u3088\u3046\u306bsutatic\u30e1\u30bd\u30c3\u30c9\u3092\u591a\u6570\u542b\u3080\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u3001\u4e0a\u8a18\u3068\u540c\u69d8\u306e\u30c6\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u305f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>package org.example.service;\n\npublic class StaticExampleService {\n\n    public static int plus(int a, int b){\n        return a + b;\n    }\n\n    public static int square(int a){\n        return a * a;\n    }\n\n    public static int minus(int a, int b){\n        return a - b;\n    }\n\n    public static int divide(int a, int b){\n        if(b == 0){\n            return 0;\n        }\n\n        return a \/ b;\n    }\n\n    \/\/ \u8db3\u3057\u7b97\u3057\u305f\u5f8c\u306b2\u4e57\u3059\u308b\n    public static int plusSquare(int a, int b){\n\n        int result = StaticExampleService.plus(a, b);\n        return StaticExampleService.square(result);\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>\u30c6\u30b9\u30c8\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>package org.example.service;\n\nimport org.junit.jupiter.api.Test;\nimport org.mockito.MockedStatic;\n\nimport static org.junit.jupiter.api.Assertions.assertEquals;\nimport static org.mockito.ArgumentMatchers.anyInt;\nimport static org.mockito.Mockito.*;\n\npublic class StaticExampleServiceTest {\n\n    @Test\n    public void staticPlusTest(){\n\n        try(MockedStatic&lt;StaticExampleService> mocked = mockStatic(StaticExampleService.class)){\n            \/\/ \u30e2\u30c3\u30af\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\n            mocked.when(() -> StaticExampleService.plus(anyInt(), anyInt())).thenReturn(3);\n\n            int result = StaticExampleService.plus(10, 20);\n\n            \/\/ plus\u30e1\u30bd\u30c3\u30c9\u306fMock\u5316\u3055\u308c\u3066\u304a\u308a\u3001\u3069\u306e\u3088\u3046\u306a\u5024\u3067\u30823\u3067\u8fd4\u5374\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\n            assertEquals(3, result);\n        }\n    }\n\n    @Test\n    public void staticPlusSquareTest(){\n\n        try(MockedStatic&lt;StaticExampleService> mocked = mockStatic(StaticExampleService.class)){\n            \/\/ \u30e2\u30c3\u30af\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\n            mocked.when(() -> StaticExampleService.plus(anyInt(), anyInt())).thenReturn(3);\n\n            int result = StaticExampleService.plusSquare(2,2);\n\n            \/\/ plus\u30e1\u30bd\u30c3\u30c9\u306fMock\u5316\u3055\u308c\u3066\u304a\u308a\u30013\u304c\u8fd4\u5374\u3055\u308c\u308b\u306e\u30679\u306b\u306a\u308b\u306f\u305a\n            assertEquals(9, result);\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u30b9\u30bf\u30c6\u30a3\u30c3\u30af\u30e1\u30bd\u30c3\u30c9\u306e\u5834\u5408\u3001mockStatic\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3057\u3066\u30e2\u30c3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059<br>\u307e\u305f\u3001try-with-resource\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001mocked.close()\u958b\u653e\u6f0f\u308c\u3092\u9632\u3050\u4e8b\u304c\u3067\u304d\u307e\u3059<br>\u53c2\u8003\uff1a<a href=\"https:\/\/keyno63.hatenablog.com\/entry\/2021\/05\/15\/060156\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/keyno63.hatenablog.com\/entry\/2021\/05\/15\/060156<\/a><\/p>\n\n\n\n<p>staticPlusTest\u306b\u3064\u3044\u3066\u306f\u554f\u984c\u306a\u304f\u30c6\u30b9\u30c8\u3092\u884c\u3046\u3053\u3068\u304c\u51fa\u6765\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u554f\u984c\u306fstaticPlusSquareTest\u3067\u3001\u4e0a\u8a18\u306e\u8a18\u8ff0\u3067\u306f\u6b63\u3057\u304f\u52d5\u304d\u307e\u305b\u3093<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">staticPlusSquareTest\u306e\u554f\u984c\u70b9\u3068\u306f<\/h2>\n\n\n\n<p>static\u30e1\u30bd\u30c3\u30c9\u306e\u4e2d\u3067\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30c6\u30b9\u30c8\u304c\u6b63\u3057\u304f\u52d5\u304b\u306a\u3044\u3088\u3046\u3067\u3059<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1018\" height=\"364\" src=\"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2022\/07\/20220724_001.png\" alt=\"\" class=\"wp-image-176\" srcset=\"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2022\/07\/20220724_001.png 1018w, https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2022\/07\/20220724_001-300x107.png 300w, https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2022\/07\/20220724_001-768x275.png 768w\" sizes=\"auto, (max-width: 1018px) 100vw, 1018px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"405\" src=\"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2022\/07\/20220724_002-1024x405.png\" alt=\"\" class=\"wp-image-175\" srcset=\"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2022\/07\/20220724_002-1024x405.png 1024w, https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2022\/07\/20220724_002-300x119.png 300w, https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2022\/07\/20220724_002-768x303.png 768w, https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2022\/07\/20220724_002.png 1488w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u4e0a\u8a18\u306e\u901a\u308a\u3001\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u306b\u8a2d\u5b9a\u3055\u308c\u305f\u5024\u304c\u8aad\u307f\u8fbc\u307e\u308c\u305a\u3001plus\u30e1\u30bd\u30c3\u30c9\u306f3\u3092\u8fd4\u5374\u3059\u308b\u3053\u3068\u3092\u671f\u5f85\u3057\u3066Mock\u3092\u69cb\u7bc9\u4e0b\u306b\u3082\u95a2\u308f\u3089\u305a\u30010\u304c\u8fd4\u5374\u3055\u308c\u30c6\u30b9\u30c8\u304c\u5931\u6557\u3057\u307e\u3059\u3002<br>\u3053\u306e\u3042\u305f\u308a\u306e\u89e3\u6c7a\u6cd5\u3092\u571f\u65e5\u306b\u8abf\u3079\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u3088\u3046\u306b\u52d5\u4f5c\u3059\u308b\u7406\u7531\u3084\u89e3\u6c7a\u6cd5\u306f\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u30fb\u30fb\u30fb<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4ee5\u4e0a<\/h2>\n\n\n\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001JUnit\u3068Mockito\u306e\u5229\u7528\u65b9\u6cd5\u3092\u571f\u65e5\u306b\u8abf\u3079\u3066\u3044\u307e\u3057\u305f\u3002\u3068\u3044\u3046\u304a\u8a71\u3067\u3057\u305f\u3002<br>\u7d50\u679c\u7684\u306b\u89e3\u6c7a\u51fa\u6765\u305a\u3067\u5fc3\u6b8b\u308a\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u3082\u3046\u3060\u3081\u306a\u306e\u3067\u3053\u3053\u3067\u4e00\u65e6\u6253\u3061\u5207\u308a\u306b\u3057\u307e\u3059\u3002<br>\u4e0a\u8a18\u306e\u3053\u3068\u304b\u3089\u3001\u57fa\u672c\u7684\u306bstatic\u30e1\u30bd\u30c3\u30c9\u306f\u30e2\u30c3\u30af\u5316\u3057\u306a\u3044\u307b\u3046\u304c\u826f\u3044\u6c17\u304c\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u4f55\u304b\u3057\u3089\u3001\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u3092\u77e5\u308a\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3063\u305d\u308aStackOverFlow\u3067\u805e\u3044\u3066\u307f\u3088\u3046\u304b\u3057\u3089<\/p>\n\n\n<div id=\"rinkerid177\" class=\"yyi-rinker-contents  yyi-rinker-postid-177 yyi-rinker-img-m yyi-rinker-catid-11 \">\n\t<div class=\"yyi-rinker-box\">\n\t\t<div class=\"yyi-rinker-image\">\n\t\t\t\t\t\t\t<a href=\"https:\/\/af.moshimo.com\/af\/c\/click?a_id=3394378&#038;p_id=54&#038;pc_id=54&#038;pl_id=616&#038;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FJava%2F%3Ff%3D1%26grp%3Dproduct\" rel=\"nofollow\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thumbnail.image.rakuten.co.jp\/@0_mall\/book\/cabinet\/7807\/9784295007807.jpg?_ex=128x128\" width=\"128\" height=\"128\" class=\"yyi-rinker-main-img\" style=\"border: none;\"><\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.moshimo.com\/af\/i\/impression?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616\" width=\"1\" height=\"1\" style=\"border:none;\">\t\t\t\t\t<\/div>\n\t\t<div class=\"yyi-rinker-info\">\n\t\t\t<div class=\"yyi-rinker-title\">\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/af.moshimo.com\/af\/c\/click?a_id=3394378&#038;p_id=54&#038;pc_id=54&#038;pl_id=616&#038;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FJava%2F%3Ff%3D1%26grp%3Dproduct\" rel=\"nofollow\">\u30b9\u30c3\u30ad\u30ea\u308f\u304b\u308bJava\u5165\u9580\u7b2c3\u7248 [ \u4e2d\u5c71\u6e05\u55ac ]<\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.moshimo.com\/af\/i\/impression?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616\" width=\"1\" height=\"1\" style=\"border:none;\">\t\t\t\t\t\t\t<\/div>\n\t\t\t<div class=\"yyi-rinker-detail\">\n\t\t\t\t\t\t\t<div class=\"credit-box\">created by&nbsp;<a href=\"https:\/\/oyakosodate.com\/rinker\/\" rel=\"nofollow noopener\" target=\"_blank\" >Rinker<\/a><\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"price-box\">\n\t\t\t\t\t\t\t<span title=\"\" class=\"price\">\u00a52,860<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"price_at\">(2026\/04\/22 04:11:09\u6642\u70b9&nbsp;\u697d\u5929\u5e02\u5834\u8abf\u3079-<\/span><span title=\"\u3053\u306e\u30b5\u30a4\u30c8\u3067\u63b2\u8f09\u3055\u308c\u3066\u3044\u308b\u60c5\u5831\u306f\u5f53\u30b5\u30a4\u30c8\u306e\u4f5c\u6210\u8005\u306b\u3088\u308a\u904b\u55b6\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4fa1\u683c\u3001\u8ca9\u58f2\u53ef\u80fd\u60c5\u5831\u306f\u3001\u5909\u66f4\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u8cfc\u5165\u6642\u306b\u697d\u5929\u5e02\u5834\u5e97\u8217\uff08www.rakuten.co.jp\uff09\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u4fa1\u683c\u304c\u305d\u306e\u5546\u54c1\u306e\u8ca9\u58f2\u306b\u9069\u7528\u3055\u308c\u307e\u3059\u3002\">\u8a73\u7d30)<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<ul class=\"yyi-rinker-links\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                    <li class=\"amazonlink\">\n\t\t\t\t\t\t<a href=\"https:\/\/www.amazon.co.jp\/gp\/search?ie=UTF8&amp;keywords=Java&amp;tag=monodon-22&amp;index=blended&amp;linkCode=ure&amp;creative=6339\" rel=\"nofollow\" class=\"yyi-rinker-link\">Amazon<\/a>\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"rakutenlink\">\n\t\t\t\t\t\t<a href=\"https:\/\/af.moshimo.com\/af\/c\/click?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616&amp;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FJava%2F%3Ff%3D1%26grp%3Dproduct\" rel=\"nofollow\" class=\"yyi-rinker-link\">\u697d\u5929\u5e02\u5834<\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.moshimo.com\/af\/i\/impression?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616\" width=\"1\" height=\"1\" style=\"border:none;\">\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"yahoolink\">\n\t\t\t\t\t\t<a href=\"https:\/\/af.moshimo.com\/af\/c\/click?a_id=3442618&amp;p_id=1225&amp;pc_id=1925&amp;pl_id=18502&amp;url=https%3A%2F%2Fshopping.yahoo.co.jp%2Fsearch%3Fp%3DJava\" rel=\"nofollow\" class=\"yyi-rinker-link\">Yahoo\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0<\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.moshimo.com\/af\/i\/impression?a_id=3442618&amp;p_id=1225&amp;pc_id=1925&amp;pl_id=18502\" width=\"1\" height=\"1\" style=\"border:none;\">\t\t\t\t\t<\/li>\n\t\t\t\t                \t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t<\/div>\n\t<\/div>\n<\/div>\n\n\n<div id=\"rinkerid178\" class=\"yyi-rinker-contents  yyi-rinker-postid-178 yyi-rinker-img-m yyi-rinker-catid-11 \">\n\t<div class=\"yyi-rinker-box\">\n\t\t<div class=\"yyi-rinker-image\">\n\t\t\t\t\t\t\t<a href=\"https:\/\/af.moshimo.com\/af\/c\/click?a_id=3394378&#038;p_id=54&#038;pc_id=54&#038;pl_id=616&#038;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FJUnit%2F%3Ff%3D1%26grp%3Dproduct\" rel=\"nofollow\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/thumbnail.image.rakuten.co.jp\/@0_mall\/book\/cabinet\/3773\/9784774153773.jpg?_ex=128x128\" width=\"128\" height=\"128\" class=\"yyi-rinker-main-img\" style=\"border: none;\"><\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.moshimo.com\/af\/i\/impression?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616\" width=\"1\" height=\"1\" style=\"border:none;\">\t\t\t\t\t<\/div>\n\t\t<div class=\"yyi-rinker-info\">\n\t\t\t<div class=\"yyi-rinker-title\">\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/af.moshimo.com\/af\/c\/click?a_id=3394378&#038;p_id=54&#038;pc_id=54&#038;pl_id=616&#038;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FJUnit%2F%3Ff%3D1%26grp%3Dproduct\" rel=\"nofollow\">JUnit\u5b9f\u8df5\u5165\u9580 \u4f53\u7cfb\u7684\u306b\u5b66\u3076\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u6280\u6cd5 \uff08WEB\uff0bDB\u3000press\u3000plus\u30b7\u30ea\u30fc\u30ba\uff09 [ \u6e21\u8fba\u4fee\u53f8 ]<\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.moshimo.com\/af\/i\/impression?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616\" width=\"1\" height=\"1\" style=\"border:none;\">\t\t\t\t\t\t\t<\/div>\n\t\t\t<div class=\"yyi-rinker-detail\">\n\t\t\t\t\t\t\t<div class=\"credit-box\">created by&nbsp;<a href=\"https:\/\/oyakosodate.com\/rinker\/\" rel=\"nofollow noopener\" target=\"_blank\" >Rinker<\/a><\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"price-box\">\n\t\t\t\t\t\t\t<span title=\"\" class=\"price\">\u00a53,630<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"price_at\">(2026\/04\/22 04:11:09\u6642\u70b9&nbsp;\u697d\u5929\u5e02\u5834\u8abf\u3079-<\/span><span title=\"\u3053\u306e\u30b5\u30a4\u30c8\u3067\u63b2\u8f09\u3055\u308c\u3066\u3044\u308b\u60c5\u5831\u306f\u5f53\u30b5\u30a4\u30c8\u306e\u4f5c\u6210\u8005\u306b\u3088\u308a\u904b\u55b6\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4fa1\u683c\u3001\u8ca9\u58f2\u53ef\u80fd\u60c5\u5831\u306f\u3001\u5909\u66f4\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u8cfc\u5165\u6642\u306b\u697d\u5929\u5e02\u5834\u5e97\u8217\uff08www.rakuten.co.jp\uff09\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u4fa1\u683c\u304c\u305d\u306e\u5546\u54c1\u306e\u8ca9\u58f2\u306b\u9069\u7528\u3055\u308c\u307e\u3059\u3002\">\u8a73\u7d30)<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<ul class=\"yyi-rinker-links\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t                    <li class=\"amazonlink\">\n\t\t\t\t\t\t<a href=\"https:\/\/www.amazon.co.jp\/gp\/search?ie=UTF8&amp;keywords=JUnit&amp;tag=monodon-22&amp;index=blended&amp;linkCode=ure&amp;creative=6339\" rel=\"nofollow\" class=\"yyi-rinker-link\">Amazon<\/a>\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"rakutenlink\">\n\t\t\t\t\t\t<a href=\"https:\/\/af.moshimo.com\/af\/c\/click?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616&amp;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FJUnit%2F%3Ff%3D1%26grp%3Dproduct\" rel=\"nofollow\" class=\"yyi-rinker-link\">\u697d\u5929\u5e02\u5834<\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.moshimo.com\/af\/i\/impression?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616\" width=\"1\" height=\"1\" style=\"border:none;\">\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<li class=\"yahoolink\">\n\t\t\t\t\t\t<a href=\"https:\/\/af.moshimo.com\/af\/c\/click?a_id=3442618&amp;p_id=1225&amp;pc_id=1925&amp;pl_id=18502&amp;url=https%3A%2F%2Fshopping.yahoo.co.jp%2Fsearch%3Fp%3DJUnit\" rel=\"nofollow\" class=\"yyi-rinker-link\">Yahoo\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0<\/a><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.moshimo.com\/af\/i\/impression?a_id=3442618&amp;p_id=1225&amp;pc_id=1925&amp;pl_id=18502\" width=\"1\" height=\"1\" style=\"border:none;\">\t\t\t\t\t<\/li>\n\t\t\t\t                \t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t<\/div>\n\t<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u65b0\u3057\u3044\u4f1a\u793e\u3067\u306f\u304d\u3061\u3093\u3068\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3092\u66f8\u304f\u6587\u5316\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u7df4\u7fd2\u306e\u305f\u3081Mockito\u306e\u5229\u7528\u65b9\u6cd5\u3092\u7df4\u7fd2\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u4eca\u307e\u3067\u7d4c\u9a13\u3057\u305f\u4f1a\u793e\u3067\u306f\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3092\u4f5c\u308b\u6587\u5316\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u4ed5\u4e8b\u3067\u304b\u306a\u308a\u5358\u4f53\u30c6\u30b9\u30c8\u4f5c\u6210\u306b\u624b\u9593\u53d6\u3063\u3066\u3044\u307e\u3059 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":175,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-172","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","entry","has-media"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JUnit\u3068Mockito\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u7df4\u7fd2 - Sheltie Garage Tech<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit\u3068mockito\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u7df4\u7fd2\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JUnit\u3068Mockito\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u7df4\u7fd2 - Sheltie Garage Tech\" \/>\n<meta property=\"og:description\" content=\"\u65b0\u3057\u3044\u4f1a\u793e\u3067\u306f\u304d\u3061\u3093\u3068\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3092\u66f8\u304f\u6587\u5316\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u7df4\u7fd2\u306e\u305f\u3081Mockito\u306e\u5229\u7528\u65b9\u6cd5\u3092\u7df4\u7fd2\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u4eca\u307e\u3067\u7d4c\u9a13\u3057\u305f\u4f1a\u793e\u3067\u306f\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3092\u4f5c\u308b\u6587\u5316\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u4ed5\u4e8b\u3067\u304b\u306a\u308a\u5358\u4f53\u30c6\u30b9\u30c8\u4f5c\u6210\u306b\u624b\u9593\u53d6\u3063\u3066\u3044\u307e\u3059 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit\u3068mockito\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u7df4\u7fd2\/\" \/>\n<meta property=\"og:site_name\" content=\"Sheltie Garage Tech\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-24T04:14:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-24T04:14:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2022\/07\/20220724_002.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1488\" \/>\n\t<meta property=\"og:image:height\" content=\"588\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"monodon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"monodon\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"12\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2022\\\/07\\\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2022\\\/07\\\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\\\/\"},\"author\":{\"name\":\"monodon\",\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/#\\\/schema\\\/person\\\/f67942d4a63ae93a823618fc5a09077f\"},\"headline\":\"JUnit\u3068Mockito\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u7df4\u7fd2\",\"datePublished\":\"2022-07-24T04:14:30+00:00\",\"dateModified\":\"2022-07-24T04:14:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2022\\\/07\\\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\\\/\"},\"wordCount\":58,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2022\\\/07\\\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/20220724_002.png\",\"articleSection\":[\"Java\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2022\\\/07\\\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2022\\\/07\\\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\\\/\",\"url\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2022\\\/07\\\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\\\/\",\"name\":\"JUnit\u3068Mockito\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u7df4\u7fd2 - Sheltie Garage Tech\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2022\\\/07\\\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2022\\\/07\\\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/20220724_002.png\",\"datePublished\":\"2022-07-24T04:14:30+00:00\",\"dateModified\":\"2022-07-24T04:14:32+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/#\\\/schema\\\/person\\\/f67942d4a63ae93a823618fc5a09077f\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2022\\\/07\\\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2022\\\/07\\\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2022\\\/07\\\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\\\/#primaryimage\",\"url\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/20220724_002.png\",\"contentUrl\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/20220724_002.png\",\"width\":1488,\"height\":588},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/2022\\\/07\\\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JUnit\u3068Mockito\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u7df4\u7fd2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/#website\",\"url\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/\",\"name\":\"Sheltie Garage Tech\",\"description\":\"\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u95a2\u9023\u306e\u8a71\u984c\u3092\u307e\u3068\u3081\u305f\u30d6\u30ed\u30b0\u3067\u3059\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/#\\\/schema\\\/person\\\/f67942d4a63ae93a823618fc5a09077f\",\"name\":\"monodon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/692645b6204688b4dd631c1af09e3f8290eef390d3a741e60c237b98263fb860?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/692645b6204688b4dd631c1af09e3f8290eef390d3a741e60c237b98263fb860?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/692645b6204688b4dd631c1af09e3f8290eef390d3a741e60c237b98263fb860?s=96&d=mm&r=g\",\"caption\":\"monodon\"},\"sameAs\":[\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\"],\"url\":\"https:\\\/\\\/sheltie-garage.xyz\\\/tech\\\/author\\\/monodon\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JUnit\u3068Mockito\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u7df4\u7fd2 - Sheltie Garage Tech","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit\u3068mockito\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u7df4\u7fd2\/","og_locale":"ja_JP","og_type":"article","og_title":"JUnit\u3068Mockito\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u7df4\u7fd2 - Sheltie Garage Tech","og_description":"\u65b0\u3057\u3044\u4f1a\u793e\u3067\u306f\u304d\u3061\u3093\u3068\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3092\u66f8\u304f\u6587\u5316\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u7df4\u7fd2\u306e\u305f\u3081Mockito\u306e\u5229\u7528\u65b9\u6cd5\u3092\u7df4\u7fd2\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u4eca\u307e\u3067\u7d4c\u9a13\u3057\u305f\u4f1a\u793e\u3067\u306f\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3092\u4f5c\u308b\u6587\u5316\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u4ed5\u4e8b\u3067\u304b\u306a\u308a\u5358\u4f53\u30c6\u30b9\u30c8\u4f5c\u6210\u306b\u624b\u9593\u53d6\u3063\u3066\u3044\u307e\u3059 [&hellip;]","og_url":"https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit\u3068mockito\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u7df4\u7fd2\/","og_site_name":"Sheltie Garage Tech","article_published_time":"2022-07-24T04:14:30+00:00","article_modified_time":"2022-07-24T04:14:32+00:00","og_image":[{"width":1488,"height":588,"url":"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2022\/07\/20220724_002.png","type":"image\/png"}],"author":"monodon","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"monodon","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"12\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\/#article","isPartOf":{"@id":"https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\/"},"author":{"name":"monodon","@id":"https:\/\/sheltie-garage.xyz\/tech\/#\/schema\/person\/f67942d4a63ae93a823618fc5a09077f"},"headline":"JUnit\u3068Mockito\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u7df4\u7fd2","datePublished":"2022-07-24T04:14:30+00:00","dateModified":"2022-07-24T04:14:32+00:00","mainEntityOfPage":{"@id":"https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\/"},"wordCount":58,"commentCount":0,"image":{"@id":"https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\/#primaryimage"},"thumbnailUrl":"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2022\/07\/20220724_002.png","articleSection":["Java"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\/","url":"https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\/","name":"JUnit\u3068Mockito\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u7df4\u7fd2 - Sheltie Garage Tech","isPartOf":{"@id":"https:\/\/sheltie-garage.xyz\/tech\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\/#primaryimage"},"image":{"@id":"https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\/#primaryimage"},"thumbnailUrl":"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2022\/07\/20220724_002.png","datePublished":"2022-07-24T04:14:30+00:00","dateModified":"2022-07-24T04:14:32+00:00","author":{"@id":"https:\/\/sheltie-garage.xyz\/tech\/#\/schema\/person\/f67942d4a63ae93a823618fc5a09077f"},"breadcrumb":{"@id":"https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\/#primaryimage","url":"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2022\/07\/20220724_002.png","contentUrl":"https:\/\/sheltie-garage.xyz\/tech\/wp-content\/uploads\/2022\/07\/20220724_002.png","width":1488,"height":588},{"@type":"BreadcrumbList","@id":"https:\/\/sheltie-garage.xyz\/tech\/2022\/07\/junit%e3%81%a8mockito%e3%81%a7%e3%83%a6%e3%83%8b%e3%83%83%e3%83%88%e3%83%86%e3%82%b9%e3%83%88%e3%81%ae%e7%b7%b4%e7%bf%92\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/sheltie-garage.xyz\/tech\/"},{"@type":"ListItem","position":2,"name":"JUnit\u3068Mockito\u3067\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u7df4\u7fd2"}]},{"@type":"WebSite","@id":"https:\/\/sheltie-garage.xyz\/tech\/#website","url":"https:\/\/sheltie-garage.xyz\/tech\/","name":"Sheltie Garage Tech","description":"\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u95a2\u9023\u306e\u8a71\u984c\u3092\u307e\u3068\u3081\u305f\u30d6\u30ed\u30b0\u3067\u3059","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sheltie-garage.xyz\/tech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/sheltie-garage.xyz\/tech\/#\/schema\/person\/f67942d4a63ae93a823618fc5a09077f","name":"monodon","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/692645b6204688b4dd631c1af09e3f8290eef390d3a741e60c237b98263fb860?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/692645b6204688b4dd631c1af09e3f8290eef390d3a741e60c237b98263fb860?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/692645b6204688b4dd631c1af09e3f8290eef390d3a741e60c237b98263fb860?s=96&d=mm&r=g","caption":"monodon"},"sameAs":["https:\/\/sheltie-garage.xyz\/tech"],"url":"https:\/\/sheltie-garage.xyz\/tech\/author\/monodon\/"}]}},"_links":{"self":[{"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/posts\/172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/comments?post=172"}],"version-history":[{"count":3,"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/posts\/172\/revisions"}],"predecessor-version":[{"id":179,"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/posts\/172\/revisions\/179"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/media\/175"}],"wp:attachment":[{"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/media?parent=172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/categories?post=172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sheltie-garage.xyz\/tech\/wp-json\/wp\/v2\/tags?post=172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}