Package com.s3auth.hosts

Examples of com.s3auth.hosts.Host.fetch()


            host,
            Matchers.hasToString(Matchers.equalTo("localhost"))
        );
        MatcherAssert.assertThat(
            ResourceMocker.toString(
                host.fetch(URI.create("/"), Range.ENTIRE, Version.LATEST)
            ),
            Matchers.notNullValue()
        );
    }
View Full Code Here


    @Test
    public void reportsCurrentVersion() throws Exception {
        final Host host = new LocalHost();
        MatcherAssert.assertThat(
            ResourceMocker.toString(
                host.fetch(URI.create("/version"), Range.ENTIRE, Version.LATEST)
            ),
            Matchers.equalTo(Manifests.read("S3Auth-Revision"))
        );
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.