From cef7fc987fd9fde7c676a5db0d08a15a4e29a537 Mon Sep 17 00:00:00 2001 From: tpylak <tpylak> Date: Wed, 6 Apr 2011 12:46:45 +0000 Subject: [PATCH] minor: mark slow tests SVN: 20671 --- .../systemsx/cisd/common/collections/TableMap.java | 2 +- .../generic/server/DatasetDownloadServletTest.java | 2 +- .../standard/DataSetFileOperationsManagerTest.java | 12 ++++++------ .../dss/generic/shared/utils/ImageUtilTest.java | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/common/source/java/ch/systemsx/cisd/common/collections/TableMap.java b/common/source/java/ch/systemsx/cisd/common/collections/TableMap.java index 256ff8bea2d..d4a4d25ff1a 100644 --- a/common/source/java/ch/systemsx/cisd/common/collections/TableMap.java +++ b/common/source/java/ch/systemsx/cisd/common/collections/TableMap.java @@ -170,7 +170,7 @@ public class TableMap<K, E> implements Iterable<E> E elem = tryGet(key); if (elem == null) { - throw new IllegalStateException("No value for teh specified key found: " + key); + throw new IllegalStateException("No value for the specified key found: " + key); } return elem; } diff --git a/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/server/DatasetDownloadServletTest.java b/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/server/DatasetDownloadServletTest.java index 2cf99fdbf41..b12013bb6e7 100644 --- a/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/server/DatasetDownloadServletTest.java +++ b/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/server/DatasetDownloadServletTest.java @@ -422,7 +422,7 @@ public class DatasetDownloadServletTest context.assertIsSatisfied(); } - @Test + @Test(groups = "slow") public void testDoGetThumbnail() throws Exception { BufferedImage image = new BufferedImage(100, 200, BufferedImage.TYPE_INT_RGB); diff --git a/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/server/plugins/standard/DataSetFileOperationsManagerTest.java b/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/server/plugins/standard/DataSetFileOperationsManagerTest.java index 112a24a9665..c18636b565c 100644 --- a/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/server/plugins/standard/DataSetFileOperationsManagerTest.java +++ b/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/server/plugins/standard/DataSetFileOperationsManagerTest.java @@ -225,7 +225,7 @@ public class DataSetFileOperationsManagerTest extends AbstractFileSystemTestCase * --< LOCAL >---------------------------------------------------------------------------------- */ - @Test + @Test(groups = "slow") public void testLocalCopyToDestination() { Properties properties = createLocalDestinationProperties(); @@ -271,7 +271,7 @@ public class DataSetFileOperationsManagerTest extends AbstractFileSystemTestCase context.assertIsSatisfied(); } - @Test + @Test(groups = "slow") public void testLocalCopyToNonExistentDestination() { Properties properties = createLocalDestinationProperties(); @@ -297,7 +297,7 @@ public class DataSetFileOperationsManagerTest extends AbstractFileSystemTestCase context.assertIsSatisfied(); } - @Test(dependsOnMethods = "testLocalCopyToDestination") + @Test(dependsOnMethods = "testLocalCopyToDestination", groups = "slow") public void testLocalCopyTwoDataSetsToDestination() { Properties properties = createLocalDestinationProperties(); @@ -334,7 +334,7 @@ public class DataSetFileOperationsManagerTest extends AbstractFileSystemTestCase context.assertIsSatisfied(); } - @Test(dependsOnMethods = "testLocalCopyToDestination") + @Test(dependsOnMethods = "testLocalCopyToDestination", groups = "slow") public void testLocalRetrieveFromDestination() { /* @@ -387,7 +387,7 @@ public class DataSetFileOperationsManagerTest extends AbstractFileSystemTestCase context.assertIsSatisfied(); } - @Test(dependsOnMethods = "testLocalCopyToDestination") + @Test(dependsOnMethods = "testLocalCopyToDestination", groups = "slow") public void testLocalPresentInDestination() { Properties properties = createLocalDestinationProperties(); @@ -459,7 +459,7 @@ public class DataSetFileOperationsManagerTest extends AbstractFileSystemTestCase context.assertIsSatisfied(); } - @Test(dependsOnMethods = "testLocalCopyToDestination") + @Test(dependsOnMethods = "testLocalCopyToDestination", groups = "slow") public void testLocalDeleteFromDestination() { /* diff --git a/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/shared/utils/ImageUtilTest.java b/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/shared/utils/ImageUtilTest.java index ff2ebf02040..c4c857c1ba5 100644 --- a/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/shared/utils/ImageUtilTest.java +++ b/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/shared/utils/ImageUtilTest.java @@ -115,7 +115,7 @@ public class ImageUtilTest extends AssertJUnit assertImageSize(805, 1023, loadImageByInputStream("png-example.png")); } - @Test + @Test(groups = "slow") public void testTiffImage() { assertImageSize(805, 1023, loadImageByFile("tiff-example.tiff")); -- GitLab