@Test public void testPathRepresentationOfUnresolvedPathWithPlaceholders() { assertThat(path("/some/${placeholders}/in/${path}").getPath()) .isEqualTo("/some/${placeholders}/in/${path}"); }
public static ResourcePath path(String path) { if (path == null) { throw new IllegalArgumentException("Method argument path must not be null"); } if (PLACEHOLDER.matcher(path).find()) { return new PathWithPlaceholders(path); } return new PathWithoutPlaceholders(path); }
ResourcePaths { public static ResourcePath path(String path) { if (path == null) { throw new IllegalArgumentException("Method argument path must not be null"); } if (PLACEHOLDER.matcher(path).find()) { return new PathWithPlaceholders(path); } return new PathWithoutPlaceholders(path); } }
ResourcePaths { public static ResourcePath path(String path) { if (path == null) { throw new IllegalArgumentException("Method argument path must not be null"); } if (PLACEHOLDER.matcher(path).find()) { return new PathWithPlaceholders(path); } return new PathWithoutPlaceholders(path); }  }
ResourcePaths { public static ResourcePath path(String path) { if (path == null) { throw new IllegalArgumentException("Method argument path must not be null"); } if (PLACEHOLDER.matcher(path).find()) { return new PathWithPlaceholders(path); } return new PathWithoutPlaceholders(path); }  static ResourcePath path(String path); }
ResourcePaths { public static ResourcePath path(String path) { if (path == null) { throw new IllegalArgumentException("Method argument path must not be null"); } if (PLACEHOLDER.matcher(path).find()) { return new PathWithPlaceholders(path); } return new PathWithoutPlaceholders(path); }  static ResourcePath path(String path);  }