@Test void getVersion( ) { ArchivaItemSelector selector = ArchivaItemSelector.builder( ).withVersion( "1.15.20.3" ).build(); assertEquals( "1.15.20.3", selector.getVersion( ) ); assertFalse( selector.hasProjectId( ) ); assertTrue( selector.hasVersion( ) ); assertFalse( selector.hasArtifactId( ) ); assertFalse( selector.hasArtifactVersion( ) ); assertFalse( selector.hasType( ) ); assertFalse( selector.hasClassifier( ) ); assertFalse( selector.hasAttributes( ) ); assertEquals( "", selector.getNamespace( ) ); assertEquals( "", selector.getArtifactId( ) ); assertEquals( "", selector.getArtifactVersion( ) ); assertEquals( "", selector.getType( ) ); assertEquals( "", selector.getClassifier( ) ); assertNotNull( selector.getAttributes( ) ); }
@Override public String getVersion( ) { return version; }
ArchivaItemSelector implements ItemSelector { @Override public String getVersion( ) { return version; } }
ArchivaItemSelector implements ItemSelector { @Override public String getVersion( ) { return version; } private  ArchivaItemSelector( ); }
ArchivaItemSelector implements ItemSelector { @Override public String getVersion( ) { return version; } private  ArchivaItemSelector( ); static Builder builder( ); @Override String getProjectId( ); @Override String getNamespace( ); @Override String getVersion( ); @Override String getArtifactVersion( ); @Override String getArtifactId( ); @Override String getType( ); @Override String getClassifier( ); @Override String getAttribute( String key ); @Override String getExtension(  ); @Override Map<String, String> getAttributes( ); @Override boolean recurse( ); @Override boolean includeRelatedArtifacts( ); @Override boolean hasAttributes( ); @Override boolean hasExtension( ); @Override boolean equals( Object o ); @Override int hashCode( ); }
ArchivaItemSelector implements ItemSelector { @Override public String getVersion( ) { return version; } private  ArchivaItemSelector( ); static Builder builder( ); @Override String getProjectId( ); @Override String getNamespace( ); @Override String getVersion( ); @Override String getArtifactVersion( ); @Override String getArtifactId( ); @Override String getType( ); @Override String getClassifier( ); @Override String getAttribute( String key ); @Override String getExtension(  ); @Override Map<String, String> getAttributes( ); @Override boolean recurse( ); @Override boolean includeRelatedArtifacts( ); @Override boolean hasAttributes( ); @Override boolean hasExtension( ); @Override boolean equals( Object o ); @Override int hashCode( );  }