fail("This test should have failed, because the given file URI has a bad syntax!");
fail("This test should have failed, because URIs are no longer supported!");
}catch(Exceptionex){
assertEquals(TAPException.class,ex.getClass());
assertEquals("Incorrect file URI for the property \""+propertyName+"\": \""+path+"\"! Bad syntax for the given file URI.",ex.getMessage());
assertEquals("Incorrect file path for the property \""+propertyName+"\": \""+path+"\"! URI/URLs are not expected here.",ex.getMessage());
}
// Test with an URL:
@@ -1161,7 +1158,7 @@ public class TestConfigurableServiceConnection {
fail("This test should have failed, because the given URI uses the HTTP protocol (actually, it uses a protocol different from \"file\"!");
}catch(Exceptionex){
assertEquals(TAPException.class,ex.getClass());
assertEquals("Incorrect file URI for the property \""+propertyName+"\": \""+path+"\"! Only URI with the protocol \"file:\" are allowed.",ex.getMessage());
assertEquals("Incorrect file path for the property \""+propertyName+"\": \""+path+"\"! URI/URLs are not expected here.",ex.getMessage());