{"version":1,"pages":[{"id":"j2UnuIioyjzMPx7SrqBp","title":"Java Testing","pathname":"/java-testing","siteSpaceId":"sitesp_RbJux","description":""},{"id":"D4g49ul3LyecUC4dIgPo","title":"Mockito","pathname":"/java-testing/mockito","siteSpaceId":"sitesp_RbJux","description":"Mocking framework for unit tests in Java"},{"id":"4JHxFZeAyNwUwE8nhncF","title":"Mockito.mock()","pathname":"/java-testing/mockito/mockito.mock","siteSpaceId":"sitesp_RbJux","description":"Creates a mock of any non final class","breadcrumbs":[{"label":"Mockito"}]},{"id":"SgxaxiwbSltERGyRF1qQ","title":"Mockito.spy()","pathname":"/java-testing/mockito/mockito.spy","siteSpaceId":"sitesp_RbJux","description":"","breadcrumbs":[{"label":"Mockito"}]},{"id":"BX7XgUzWVx3dWQa5Ri5L","title":"Mockito.verify()","pathname":"/java-testing/mockito/mockito.verify","siteSpaceId":"sitesp_RbJux","description":"Verify interactions with your mock","breadcrumbs":[{"label":"Mockito"}]},{"id":"9dW8E7gSSfqy59gZCGFM","title":"Mockito.mockStatic()","pathname":"/java-testing/mockito/mockito.mockstatic","siteSpaceId":"sitesp_RbJux","description":"Mock static methods without PowerMock","breadcrumbs":[{"label":"Mockito"}]},{"id":"cxNnl0l2Npv9gT21XTak","title":"ArgumentMatcher","pathname":"/java-testing/mockito/argumentmatcher","siteSpaceId":"sitesp_RbJux","description":"Match arguments passed in a method of your mock","breadcrumbs":[{"label":"Mockito"}]},{"id":"4LkMUUyBPcKDq7HzBjc1","title":"ArgumentCaptor","pathname":"/java-testing/mockito/argumentcaptor","siteSpaceId":"sitesp_RbJux","description":"Can do everything argument matcher can and still more","breadcrumbs":[{"label":"Mockito"}]},{"id":"uSBoPIrSr0xV2cMPvCRe","title":"PowerMockito","pathname":"/java-testing/powermockito","siteSpaceId":"sitesp_RbJux","description":""},{"id":"aIXf5SbTcHdY8MTOjScx","title":"Why we need PowerMock?","pathname":"/java-testing/powermockito/why-we-need-powermock","siteSpaceId":"sitesp_RbJux","description":"","breadcrumbs":[{"label":"PowerMockito"}]},{"id":"xTfe892ltAQp4eti36Fj","title":"PowerMockRunner","pathname":"/java-testing/powermockito/powermockrunner","siteSpaceId":"sitesp_RbJux","description":"You must annotate each class you test with PowerMockRunner","breadcrumbs":[{"label":"PowerMockito"}]},{"id":"veFmIK108a75ohg3J6xF","title":"PrepareForTest","pathname":"/java-testing/powermockito/preparefortest","siteSpaceId":"sitesp_RbJux","description":"Mark this class for bytecode manipulation","breadcrumbs":[{"label":"PowerMockito"}]},{"id":"3XpbDDntQ5Ro473sj1Fd","title":"Understanding @PrepareForTest","pathname":"/java-testing/powermockito/preparefortest/understanding-preparefortest","siteSpaceId":"sitesp_RbJux","description":"PrepareForTest is very powerful tool that unlocks class manipulation capabilities by modifying class to byte code level.","breadcrumbs":[{"label":"PowerMockito"},{"label":"PrepareForTest"}]},{"id":"yIGUewpApOBheXTKkYvm","title":"SuppressStaticInitializationFor","pathname":"/java-testing/powermockito/suppressstaticinitializationfor","siteSpaceId":"sitesp_RbJux","description":"","breadcrumbs":[{"label":"PowerMockito"}]},{"id":"yfAbpWrhvAzVLR5qIcn7","title":"PowerMockito.suppress()","pathname":"/java-testing/powermockito/powermockito.suppress","siteSpaceId":"sitesp_RbJux","description":"","breadcrumbs":[{"label":"PowerMockito"}]},{"id":"vprj5hubEOOAb42rH0N8","title":"PowerMockito.stub()","pathname":"/java-testing/powermockito/powermockito.stub","siteSpaceId":"sitesp_RbJux","description":"","breadcrumbs":[{"label":"PowerMockito"}]},{"id":"JQzX6DKZAfG51BFWfoFY","title":"PowerMockito.replace()","pathname":"/java-testing/powermockito/powermockito.replace","siteSpaceId":"sitesp_RbJux","description":"","breadcrumbs":[{"label":"PowerMockito"}]},{"id":"3HybDWfu2PNEmI6JD2qN","title":"PowerMockito.whenNew()","pathname":"/java-testing/powermockito/powermockito.whennew","siteSpaceId":"sitesp_RbJux","description":"","breadcrumbs":[{"label":"PowerMockito"}]},{"id":"FROmrlM2ugUGojgtIspP","title":"Limitation of PowerMockito.whenNew()","pathname":"/java-testing/powermockito/powermockito.whennew/limitation-of-powermockito.whennew","siteSpaceId":"sitesp_RbJux","description":"Why Powermockito.whenNew() is not enough.","breadcrumbs":[{"label":"PowerMockito"},{"label":"PowerMockito.whenNew()"}]},{"id":"dpfwadoCPsZ4M9rghJrT","title":"Whitebox.invokeMethod()","pathname":"/java-testing/powermockito/whitebox.invokemethod","siteSpaceId":"sitesp_RbJux","description":"","breadcrumbs":[{"label":"PowerMockito"}]},{"id":"SjIaDE3YRF1ZNtJZmoXb","title":"Whitebox.setInternalState()","pathname":"/java-testing/powermockito/whitebox.setinternalstate","siteSpaceId":"sitesp_RbJux","description":"","breadcrumbs":[{"label":"PowerMockito"}]},{"id":"4IaYTxxJy7TjQc1rttn3","title":"Whitebox.getInternalState()","pathname":"/java-testing/powermockito/whitebox.getinternalstate","siteSpaceId":"sitesp_RbJux","description":"","breadcrumbs":[{"label":"PowerMockito"}]},{"id":"6Hqkbvj5oVBY6y2vcRix","title":"Tips","pathname":"/java-testing/tips","siteSpaceId":"sitesp_RbJux","description":"Pages with tips to test your code effectively"},{"id":"TyMYKYpBfML6wTSRxzp9","title":"How to test ViewModel and LiveData","pathname":"/java-testing/tips/how-to-test-viewmodel-and-livedata","siteSpaceId":"sitesp_RbJux","description":"Test your async code build on top of androidx arch.","breadcrumbs":[{"label":"Tips"}]}]}