verify( check ).accept( "41.1.0", "1.3" );
}
@Test
public void testDelegatesErrorMessage() {
TabrisRequest request = environment.getRequest();
request.setHeader( Constants.USER_AGENT, "com.eclipsesource.tabris.android/41.1.0 (foo)" );
VersionCheck check = mock( VersionCheck.class );
when( check.getErrorMessage( anyString(), anyString() ) ).thenReturn( "foo" );
VersionChecker checker = new VersionChecker( check, "1.3" );
String errorMessage = checker.getErrorMessage();