Package org.simpleframework.http.parse

Examples of org.simpleframework.http.parse.AddressParser$Token


        assertThat(resource, is(instanceOf(CiEyeResource.class)));
    }
   
    @Test public void
    resolvesSettingsLocation() {
        final Resource resource = engine.resolve(new AddressParser("http://ci-eye/settingslocation.json"));
        assertThat(resource, is(instanceOf(CiEyeResource.class)));
    }
View Full Code Here


        assertThat(resource, is(instanceOf(CiEyeResource.class)));
    }
   
    @Test public void
    resolvesVersion() {
        final Resource resource = engine.resolve(new AddressParser("http://ci-eye/version.json"));
        assertThat(resource, is(instanceOf(CiEyeResource.class)));
    }
View Full Code Here

        assertThat(resource, is(instanceOf(CiEyeResource.class)));
    }
   
    @Test public void
    resolvesTopLevelStaticFiles() {
        final Resource resource = engine.resolve(new AddressParser("http://ci-eye/favicon.ico"));
        assertThat(resource, is(instanceOf(CiEyeResource.class)));
    }
View Full Code Here

        assertThat(resource, is(instanceOf(CiEyeResource.class)));
    }

    @Test public void
    resolvesPictureResources() {
        final Resource resource = engine.resolve(new AddressParser("http://ci-eye/pictures/myMugshot.png"));
        assertThat(resource, is(instanceOf(CiEyeResource.class)));
    }
View Full Code Here

        assertThat(resource, is(instanceOf(CiEyeResource.class)));
    }

    @Test public void
    resolvesLandscapeResources() {
        final Resource resource = engine.resolve(new AddressParser("http://ci-eye/landscapes/myLandscape/"));
        assertThat(resource, is(instanceOf(CiEyeResource.class)));
    }
View Full Code Here

        assertThat(resource, is(instanceOf(CiEyeResource.class)));
    }

    @Test public void
    redirectsLandscapeResourcesWithoutTrailingSlash() throws IOException {
        final Resource resource = engine.resolve(new AddressParser("http://ci-eye/landscapes/myLandscape"));
        final Request request = context.mock(Request.class);
        final Response response = context.mock(Response.class);
       
        context.checking(new Expectations() {{
            oneOf(response).setCode(301);
View Full Code Here

    resolvesLandscapeObservationResources() {
        context.checking(new Expectations() {{
            oneOf(landscapeFetcher).landscapeNamed("myLandscape");
        }});
       
        final Resource resource = engine.resolve(new AddressParser("http://ci-eye/landscapes/myLandscape/landscapeobservation.json"));
       
        context.assertIsSatisfied();
        assertThat(resource, is(instanceOf(CiEyeResource.class)));
    }
View Full Code Here

        assertThat(resource, is(instanceOf(CiEyeResource.class)));
    }
   
    @Test public void
    handlesAddNoteRequest() {
        final Resource resource = engine.resolve(new AddressParser("http://ci-eye/landscapes/myLandscape/addNote"));
        assertThat(resource, is(instanceOf(CiEyeResource.class)));
    }
View Full Code Here

    handlesDohRequest() {
        context.checking(new Expectations() {{
            oneOf(landscapeFetcher).landscapeNamed("myLandscape");
        }});
       
        final Resource resource = engine.resolve(new AddressParser("http://ci-eye/landscapes/myLandscape/doh"));
       
        context.assertIsSatisfied();
        assertThat(resource, is(instanceOf(CiEyeResource.class)));
    }
View Full Code Here

    *
    * @param indexer this is the source indexer for this instance
    * @param target this is the URI target that is to be indexed
    */ 
   public FileIndex(Indexer indexer, String target) {
      this(indexer, new AddressParser(target));
   }
View Full Code Here

TOP

Related Classes of org.simpleframework.http.parse.AddressParser$Token

Copyright © 2018 www.massapicom. 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.