@Test public void passingMoreValuesThanBindingsThrowsException() { final Path path = new Path("EMIR1/EMIR2/*"); try { path.getPath("EMIR", "EMIR"); fail("Allowed empty value for star."); } catch (final IllegalArgumentException illegalArgumentException) { assertThat(illegalArgumentException).hasMessage("Incoming values does not match number of bindings."); } }
public String getPath(final Object... objects){ final List<String> pathSegments = getPathSegments(objects); return TextUtils.join("/", pathSegments); }
Path { public String getPath(final Object... objects){ final List<String> pathSegments = getPathSegments(objects); return TextUtils.join("/", pathSegments); } }
Path { public String getPath(final Object... objects){ final List<String> pathSegments = getPathSegments(objects); return TextUtils.join("/", pathSegments); } Path(final String path);  Path(final String... pathSegments); }
Path { public String getPath(final Object... objects){ final List<String> pathSegments = getPathSegments(objects); return TextUtils.join("/", pathSegments); } Path(final String path);  Path(final String... pathSegments); int getPathSegmentCount(); String getMatcherPath(); List<String> getPathSegments(final Object... objects); String getPath(final Object... objects); @Override boolean equals(final Object object); boolean matches(final Uri uri); }
Path { public String getPath(final Object... objects){ final List<String> pathSegments = getPathSegments(objects); return TextUtils.join("/", pathSegments); } Path(final String path);  Path(final String... pathSegments); int getPathSegmentCount(); String getMatcherPath(); List<String> getPathSegments(final Object... objects); String getPath(final Object... objects); @Override boolean equals(final Object object); boolean matches(final Uri uri);  }