@Test public void snapshot_invalidFormat() throws Exception { MavenPath mavenPath = pathParser.parsePath( "org/sonatype/nexus/nexus-webapp/1.0.0-beta-5-SNAPSHOT/nexus-webapp-1.0.0-beta-5-20171208-test.tar.gz"); assertThat(mavenPath, notNullValue()); assertThat(mavenPath.getPath(), equalTo( "org/sonatype/nexus/nexus-webapp/1.0.0-beta-5-SNAPSHOT/nexus-webapp-1.0.0-beta-5-20171208-test.tar.gz")); assertThat(mavenPath.getFileName(), equalTo("nexus-webapp-1.0.0-beta-5-20171208-test.tar.gz")); assertThat(mavenPath.getCoordinates(), notNullValue()); assertThat(mavenPath.getCoordinates().getExtension(), notNullValue()); assertThat(mavenPath.getCoordinates().getClassifier(), nullValue()); assertThat(mavenPath.getCoordinates().getVersion(), notNullValue()); assertThat(mavenPath.getCoordinates().getBaseVersion(), equalTo("1.0.0-beta-5-SNAPSHOT")); assertThat(mavenPath.getCoordinates().isSnapshot(), equalTo(true)); assertThat(mavenPath.getCoordinates().getTimestamp(), nullValue()); assertThat(mavenPath.getCoordinates().getBuildNumber(), nullValue()); }
@Nonnull @Override public MavenPath parsePath(final String path) { return parsePath(path, true); }
Maven2MavenPathParser extends ComponentSupport implements MavenPathParser { @Nonnull @Override public MavenPath parsePath(final String path) { return parsePath(path, true); } }
Maven2MavenPathParser extends ComponentSupport implements MavenPathParser { @Nonnull @Override public MavenPath parsePath(final String path) { return parsePath(path, true); }  }
Maven2MavenPathParser extends ComponentSupport implements MavenPathParser { @Nonnull @Override public MavenPath parsePath(final String path) { return parsePath(path, true); }  @Nonnull @Override MavenPath parsePath(final String path); @Nonnull @Override MavenPath parsePath(final String path, final boolean caseSensitive); @Override boolean isRepositoryMetadata(final MavenPath path); @Override boolean isRepositoryIndex(final MavenPath path); }
Maven2MavenPathParser extends ComponentSupport implements MavenPathParser { @Nonnull @Override public MavenPath parsePath(final String path) { return parsePath(path, true); }  @Nonnull @Override MavenPath parsePath(final String path); @Nonnull @Override MavenPath parsePath(final String path, final boolean caseSensitive); @Override boolean isRepositoryMetadata(final MavenPath path); @Override boolean isRepositoryIndex(final MavenPath path);  }