Examples of path()


Examples of com.fasterxml.jackson.databind.node.ArrayNode.path()

        assertFalse(0 == n.hashCode());
        assertTrue(n.elements().hasNext());
        // no field names for arrays
        assertFalse(n.fieldNames().hasNext());
        assertNull(n.get("x")); // not used with arrays
        assertTrue(n.path("x").isMissingNode());
        assertSame(text, n.get(0));

        // single element, so:
        assertFalse(n.has("field"));
        assertFalse(n.hasNonNull("field"));
View Full Code Here

Examples of com.fasterxml.jackson.databind.node.ObjectNode.path()

        assertNotNull(jsonSchema.toString());
        assertNotNull(JsonSchema.getDefaultSchemaNode());

        ObjectNode root = jsonSchema.getSchemaNode();
        assertEquals("object", root.get("type").asText());
        assertEquals(false, root.path("required").booleanValue());
        JsonNode propertiesSchema = root.get("properties");
        assertNotNull(propertiesSchema);
        JsonNode property1Schema = propertiesSchema.get("property1");
        assertNotNull(property1Schema);
        assertEquals("integer", property1Schema.get("type").asText());
View Full Code Here

Examples of com.foreach.across.modules.web.context.PrefixingPathContext.path()

  @Test
  public void pathMethod() {
    PrefixingPathContext ctx = new PrefixingPathContext( "/boe" );

    assertEquals( "/boe/test/path", ctx.path( "test/path" ) );
    assertEquals( "/boe/test/path", ctx.path( "/test/path" ) );
    assertEquals( "http://www.google.be", ctx.path( "http://www.google.be" ) );
    assertEquals( "~/test/path", ctx.path( "~/test/path" ) );
    assertEquals( "redirect:/boe/test/path", ctx.path( "redirect:test/path" ) );
    assertEquals( "redirect:/boe/test/path", ctx.path( "redirect:/test/path" ) );
View Full Code Here

Examples of com.github.kristofa.test.http.HttpRequestImpl.path()

        responseProvider.addHttpRequestMatchingFilter(filter);

        final HttpRequestImpl request1 = new HttpRequestImpl();
        request1.method(Method.GET);
        request1.path("/a/b");
        request1.queryParameter("a", "1");
        request1.httpMessageHeader("custom", "value");

        final HttpResponse response1 = responseProvider.getResponse(request1);
        assertNotNull("We expect matcher to be kicked in and provided response.", response1);
View Full Code Here

Examples of com.google.gwt.chrome.crx.client.ContentScript.ManifestInfo.path()

    if (spec == null) {
      logger.log(TreeLogger.ERROR, "ContentScript (" + typeName
          + ") must be annotated with a Specificaiton.");
      throw new UnableToCompleteException();
    }
    context.commitArtifact(logger, new ContentScriptArtifact(spec.path(),
        spec.whiteList(), spec.runAt()));
  }

  private static String processPage(TreeLogger logger,
      GeneratorContext context, JClassType userType)
View Full Code Here

Examples of com.jcabi.github.Content.path()

        final String path = "dummy.txt";
        final Content content = contents.create(
            jsonContent(path, "for path", "path test")
        );
        MatcherAssert.assertThat(
            content.path(),
            Matchers.is(path)
        );
    }

    /**
 
View Full Code Here

Examples of com.jcabi.http.RequestURI.path()

        this.owner = repo;
        final RequestURI rep = req.uri()
            .path("/repos")
            .path(repo.coordinates().user())
            .path(repo.coordinates().repo());
        this.request = rep
            .path("/commits")
            .back();
        this.comp = rep
            .path("/compare")
            .back();
View Full Code Here

Examples of com.jetdrone.vertx.yoke.core.YokeFileUpload.path()

                                next.handle(throwable);
                            }
                        });

                        // stream to the generated path
                        fileUpload.streamToFileSystem(upload.path());
                        // store a reference in the request
                        request.files().put(fileUpload.name(), upload);
                        // set up a callback to remove the file from the file system when the request completes
                        request.response().endHandler(new Handler<Void>() {
                            @Override
View Full Code Here

Examples of com.jetdrone.vertx.yoke.middleware.YokeRequest.path()

                                if (!mountedMiddleware.enabled) {
                                    // the middleware is disabled
                                    handle(null);
                                } else {
                                    if (request.path().startsWith(mountedMiddleware.mount)) {
                                        mountedMiddleware.middleware.handle(request, this);
                                    } else {
                                        // the middleware was not mounted on this uri, skip to the next entry
                                        handle(null);
                                    }
View Full Code Here

Examples of com.kurento.kmf.content.HttpPlayerService.path()

        HttpPlayerService playerService = Class.forName(ph)
            .getAnnotation(HttpPlayerService.class);
        if (playerService != null) {
          String name = playerService.name().isEmpty() ? ph
              : playerService.name();
          String path = playerService.path();
          log.info("Registering HttpPlayerHandler with name " + name
              + " at path " + path);
          ServletRegistration.Dynamic sr = sc.addServlet(name,
              PlayerHandlerServlet.class);
          if (sr == null) {
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.