From 84d191c3b5272cd1c9c3f93b98af26197f1262b5 Mon Sep 17 00:00:00 2001 From: brinn <brinn> Date: Mon, 11 Jun 2007 18:11:23 +0000 Subject: [PATCH] fix: unit-test by adapting the expectation on what exception is going to be thrown SVN: 455 --- .../java/ch/systemsx/cisd/datamover/SelfTestTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/datamover/sourceTest/java/ch/systemsx/cisd/datamover/SelfTestTest.java b/datamover/sourceTest/java/ch/systemsx/cisd/datamover/SelfTestTest.java index 4b72526d0db..67a0cb50b22 100644 --- a/datamover/sourceTest/java/ch/systemsx/cisd/datamover/SelfTestTest.java +++ b/datamover/sourceTest/java/ch/systemsx/cisd/datamover/SelfTestTest.java @@ -23,7 +23,6 @@ import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import ch.systemsx.cisd.common.exceptions.ConfigurationFailureException; -import ch.systemsx.cisd.common.exceptions.EnvironmentFailureException; import ch.systemsx.cisd.common.exceptions.Status; import ch.systemsx.cisd.common.logging.LogInitializer; import ch.systemsx.cisd.common.utilities.FileUtilities; @@ -228,7 +227,7 @@ public class SelfTestTest SelfTest.check(localDataDirectory, localTemporaryDirectory, remoteDataDirectory, remoteHost, mockCopier); } - @Test(expectedExceptions = EnvironmentFailureException.class) + @Test(expectedExceptions = ConfigurationFailureException.class) public void testRemoteHostAndDirectoryDoesNotExist() { final String remoteHost = "some_remote_host"; -- GitLab