]> source.dussan.org Git - vaadin-framework.git/commitdiff
Show error when deployment url is not given
authorArtur Signell <artur@vaadin.com>
Tue, 3 Sep 2013 13:24:08 +0000 (16:24 +0300)
committerArtur Signell <artur@vaadin.com>
Tue, 3 Sep 2013 13:24:08 +0000 (16:24 +0300)
Change-Id: If7186a9139bc387faf311e465f6bea54b75cb58d

uitest/src/com/vaadin/tests/integration/IntegrationTestTB3.java

index dfdb1fed081998a779756883a0389b9201f53150..1988e8b151e61fabf8746de3f21dd6ec3629a026 100644 (file)
@@ -33,7 +33,7 @@ import com.vaadin.tests.tb3.PrivateTB3Configuration;
  * @author Vaadin Ltd
  */
 @RunWith(IntegrationTestRunner.class)
-public class IntegrationTestTB3 extends PrivateTB3Configuration {
+public abstract class IntegrationTestTB3 extends PrivateTB3Configuration {
     @Test
     public void runTest() throws IOException, AssertionError {
         compareScreen("initial");
@@ -61,7 +61,13 @@ public class IntegrationTestTB3 extends PrivateTB3Configuration {
 
     @Override
     protected String getBaseURL() {
-        return System.getProperty("deployment.url");
+        String deploymentUrl = System.getProperty("deployment.url");
+        if (deploymentUrl == null || deploymentUrl.equals("")) {
+            throw new RuntimeException(
+                    "Deployment url must be given as deployment.url");
+        }
+
+        return deploymentUrl;
     }
 
     @Override