mirror of
https://github.com/apache/jclouds.git
synced 2025-02-28 13:29:06 +00:00
Specify missing DataProviders
Uncovered by newer versions of testng.
This commit is contained in:
parent
2b217fb2bb
commit
5111923566
@ -17,6 +17,8 @@
|
|||||||
package org.jclouds.filesystem.integration;
|
package org.jclouds.filesystem.integration;
|
||||||
|
|
||||||
import static org.jclouds.filesystem.util.Utils.isMacOSX;
|
import static org.jclouds.filesystem.util.Utils.isMacOSX;
|
||||||
|
import static org.jclouds.utils.TestUtils.NO_INVOCATIONS;
|
||||||
|
import static org.jclouds.utils.TestUtils.SINGLE_NO_ARG_INVOCATION;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
@ -44,6 +46,7 @@ import org.jclouds.filesystem.reference.FilesystemConstants;
|
|||||||
import org.jclouds.filesystem.utils.TestUtils;
|
import org.jclouds.filesystem.utils.TestUtils;
|
||||||
import org.jclouds.io.Payload;
|
import org.jclouds.io.Payload;
|
||||||
import org.jclouds.io.Payloads;
|
import org.jclouds.io.Payloads;
|
||||||
|
import org.testng.annotations.DataProvider;
|
||||||
import org.testng.annotations.Test;
|
import org.testng.annotations.Test;
|
||||||
import org.testng.SkipException;
|
import org.testng.SkipException;
|
||||||
|
|
||||||
@ -205,4 +208,10 @@ public class FilesystemBlobIntegrationTest extends BaseBlobIntegrationTest {
|
|||||||
throw new SkipException("filesystem does not support extended attributes in Mac OSX");
|
throw new SkipException("filesystem does not support extended attributes in Mac OSX");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@DataProvider
|
||||||
|
public Object[][] ignoreOnMacOSX() {
|
||||||
|
return isMacOSX() ? NO_INVOCATIONS
|
||||||
|
: SINGLE_NO_ARG_INVOCATION;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,8 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
import static org.jclouds.blobstore.options.ListContainerOptions.Builder.afterMarker;
|
import static org.jclouds.blobstore.options.ListContainerOptions.Builder.afterMarker;
|
||||||
import static org.jclouds.blobstore.options.ListContainerOptions.Builder.inDirectory;
|
import static org.jclouds.blobstore.options.ListContainerOptions.Builder.inDirectory;
|
||||||
import static org.jclouds.blobstore.options.ListContainerOptions.Builder.maxResults;
|
import static org.jclouds.blobstore.options.ListContainerOptions.Builder.maxResults;
|
||||||
|
import static org.jclouds.utils.TestUtils.NO_INVOCATIONS;
|
||||||
|
import static org.jclouds.utils.TestUtils.SINGLE_NO_ARG_INVOCATION;
|
||||||
import static org.testng.Assert.assertEquals;
|
import static org.testng.Assert.assertEquals;
|
||||||
import static org.testng.Assert.assertFalse;
|
import static org.testng.Assert.assertFalse;
|
||||||
import static org.testng.Assert.assertTrue;
|
import static org.testng.Assert.assertTrue;
|
||||||
@ -790,4 +792,14 @@ public class BaseContainerIntegrationTest extends BaseBlobStoreIntegrationTest {
|
|||||||
Uninterruptibles.sleepUninterruptibly(AWAIT_CONSISTENCY_TIMEOUT_SECONDS, TimeUnit.SECONDS);
|
Uninterruptibles.sleepUninterruptibly(AWAIT_CONSISTENCY_TIMEOUT_SECONDS, TimeUnit.SECONDS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@DataProvider
|
||||||
|
public Object[][] ignoreOnWindows() {
|
||||||
|
return isWindowsOs() ? NO_INVOCATIONS
|
||||||
|
: SINGLE_NO_ARG_INVOCATION;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static boolean isWindowsOs() {
|
||||||
|
return System.getProperty("os.name", "").toLowerCase().contains("windows");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user