@Ignore @Test public void supportedVersion() throws Exception { final AbstractClient client = mock(BaseTestClient.class); when(client.getRemoteServiceVersion()).thenReturn(1L); client.checkVersion(1); client.close(); } }
@Ignore @Test public void unsupportedVersion() throws Exception { //mExpectedException.expect(IOException.class); mExpectedException.expectMessage(INCOMPATIBLE_VERSION.getMessage(SERVICE_NAME, 0, 1)); final AbstractClient client = mock(BaseTestClient.class); when(client.getRemoteServiceVersion()).thenReturn(1L); client.checkVersion(0); client.close(); }