Cyberduck Mountain Duck CLI

Changeset 41283


Ignore:
Timestamp:
Jun 7, 2017 9:00:18 PM (14 months ago)
Author:
dkocher
Message:

Fix tests.

Location:
shelves/02.06.2017/s3/src/test/java/ch/cyberduck/core
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • shelves/02.06.2017/s3/src/test/java/ch/cyberduck/core/ProfileTest.java

    r33399 r41283  
    2020import ch.cyberduck.core.s3.S3Protocol;
    2121
     22import org.junit.BeforeClass;
    2223import org.junit.Test;
    2324
     
    2728public class ProfileTest {
    2829
     30    @BeforeClass
     31    public static void register() {
     32        ProtocolFactory.global.register(new S3Protocol());
     33    }
     34
    2935    @Test
    3036    public void testEquals() throws Exception {
    31         ProtocolFactory.register(new S3Protocol());
    3237        assertEquals(ProfileReaderFactory.get().read(
    3338                        new Local("../profiles/S3 (Temporary Credentials).cyberduckprofile")),
     
    3843    @Test
    3944    public void testCompareTo() throws Exception {
    40         ProtocolFactory.register(new S3Protocol());
    4145        assertEquals(0, ProfileReaderFactory.get().read(
    4246                new Local("../profiles/S3 (Temporary Credentials).cyberduckprofile")).compareTo(ProfileReaderFactory.get().read(
     
    4852    @Test
    4953    public void testCompareMultipleRegions() throws Exception {
    50         ProtocolFactory.register(new S3Protocol());
    5154        assertEquals(0, ProfileReaderFactory.get().read(
    5255                new Local("../profiles/Verizon Cloud Storage (AMS1A).cyberduckprofile")).compareTo(ProfileReaderFactory.get().read(
  • shelves/02.06.2017/s3/src/test/java/ch/cyberduck/core/s3/S3SessionTest.java

    r39871 r41283  
    2525import ch.cyberduck.test.IntegrationTest;
    2626
     27import org.junit.BeforeClass;
    2728import org.junit.Ignore;
    2829import org.junit.Test;
     
    4142public class S3SessionTest {
    4243
     44    @BeforeClass
     45    public static void register() {
     46        ProtocolFactory.global.register(new S3Protocol());
     47    }
     48
    4349    @Test
    4450    public void testHttpProfile() throws Exception {
    45         ProtocolFactory.register(new S3Protocol());
    4651        final Profile profile = ProfileReaderFactory.get().read(
    4752                new Local("../profiles/S3 (HTTP).cyberduckprofile"));
     
    250255    @Test
    251256    public void testBucketVirtualHostStyleEucalyptusDefaultHost() throws Exception {
    252         ProtocolFactory.register(new S3Protocol());
    253257        final Profile profile = ProfileReaderFactory.get().read(
    254258                new Local("../profiles/Eucalyptus Walrus S3.cyberduckprofile"));
     
    259263    @Test
    260264    public void testBucketVirtualHostStyleEucalyptusCustomDeployment() throws Exception {
    261         ProtocolFactory.register(new S3Protocol());
    262265        final Profile profile = ProfileReaderFactory.get().read(
    263266                new Local("../profiles/Eucalyptus Walrus S3.cyberduckprofile"));
     
    269272    @Ignore
    270273    public void testTemporaryAccessToken() throws Exception {
    271         ProtocolFactory.register(new S3Protocol());
    272274        final Profile profile = ProfileReaderFactory.get().read(
    273275                new Local("../profiles/S3 (Temporary Credentials).cyberduckprofile"));
  • shelves/02.06.2017/s3/src/test/java/ch/cyberduck/core/udt/UDTProxyConfiguratorTest.java

    r39836 r41283  
    5252import org.apache.commons.lang3.RandomStringUtils;
    5353import org.apache.commons.lang3.exception.ExceptionUtils;
     54import org.junit.BeforeClass;
    5455import org.junit.Ignore;
    5556import org.junit.Test;
     
    7677@Category(IntegrationTest.class)
    7778public class UDTProxyConfiguratorTest {
     79
     80    @BeforeClass
     81    public static void register() {
     82        ProtocolFactory.global.register(new S3Protocol());
     83    }
    7884
    7985    @Test(expected = ConnectionRefusedException.class)
     
    198204    @Test
    199205    public void testUnsecureConnection() throws Exception {
    200         ProtocolFactory.register(new S3Protocol());
    201206        final Profile profile = ProfileReaderFactory.get().read(
    202207                new Local("../profiles/S3 (HTTP).cyberduckprofile"));
     
    216221    @Test
    217222    public void testWrite() throws Exception {
    218         ProtocolFactory.register(new S3Protocol());
    219223        final Profile profile = ProfileReaderFactory.get().read(
    220224                new Local("../profiles/S3 (HTTP).cyberduckprofile"));
Note: See TracChangeset for help on using the changeset viewer.
swiss made software