@Test public void approveNull(){ final ArtifactIdFilter filter = new ArtifactIdFilter("test"); assertFalse(filter.filter(null)); }
@Override public boolean filter(final Object datamodelObj) { if(datamodelObj instanceof DbArtifact){ return artifactId.equals( ((DbArtifact)datamodelObj).getArtifactId()); } return false; }
ArtifactIdFilter implements Filter { @Override public boolean filter(final Object datamodelObj) { if(datamodelObj instanceof DbArtifact){ return artifactId.equals( ((DbArtifact)datamodelObj).getArtifactId()); } return false; } }
ArtifactIdFilter implements Filter { @Override public boolean filter(final Object datamodelObj) { if(datamodelObj instanceof DbArtifact){ return artifactId.equals( ((DbArtifact)datamodelObj).getArtifactId()); } return false; } ArtifactIdFilter(final String artifactId); }
ArtifactIdFilter implements Filter { @Override public boolean filter(final Object datamodelObj) { if(datamodelObj instanceof DbArtifact){ return artifactId.equals( ((DbArtifact)datamodelObj).getArtifactId()); } return false; } ArtifactIdFilter(final String artifactId); @Override boolean filter(final Object datamodelObj); @Override Map<String, Object> moduleFilterFields(); @Override Map<String, Object> artifactFilterFields(); }
ArtifactIdFilter implements Filter { @Override public boolean filter(final Object datamodelObj) { if(datamodelObj instanceof DbArtifact){ return artifactId.equals( ((DbArtifact)datamodelObj).getArtifactId()); } return false; } ArtifactIdFilter(final String artifactId); @Override boolean filter(final Object datamodelObj); @Override Map<String, Object> moduleFilterFields(); @Override Map<String, Object> artifactFilterFields();  }