@Test public void getPathWithStringWhenShouldBeNumeric_throwsException() { final Path path = new Path("EMIR1/#/EMIR2"); try { path.getPath("EMIR"); fail("Parsed 'EMIR' into Numeric when exception should have been thrown."); } catch (final IllegalArgumentException illegalArgumentException) { assertThat(illegalArgumentException).hasMessage("Expecting numeric value, cannot insert EMIR into '#'."); } }
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);  }