@Test public void approveArtifact(){ final DbArtifact artifact = new DbArtifact(); artifact.setClassifier("classifierTest"); ClassifierFilter filter = new ClassifierFilter(artifact.getClassifier()); assertTrue(filter.filter(artifact)); filter = new ClassifierFilter("test"); assertFalse(filter.filter(artifact)); }
@Override public boolean filter(final Object datamodelObj) { if(datamodelObj instanceof DbArtifact){ return classifier.equals( ((DbArtifact)datamodelObj).getClassifier()); } return false; }
ClassifierFilter implements Filter { @Override public boolean filter(final Object datamodelObj) { if(datamodelObj instanceof DbArtifact){ return classifier.equals( ((DbArtifact)datamodelObj).getClassifier()); } return false; } }
ClassifierFilter implements Filter { @Override public boolean filter(final Object datamodelObj) { if(datamodelObj instanceof DbArtifact){ return classifier.equals( ((DbArtifact)datamodelObj).getClassifier()); } return false; } ClassifierFilter(final String classifier); }
ClassifierFilter implements Filter { @Override public boolean filter(final Object datamodelObj) { if(datamodelObj instanceof DbArtifact){ return classifier.equals( ((DbArtifact)datamodelObj).getClassifier()); } return false; } ClassifierFilter(final String classifier); @Override boolean filter(final Object datamodelObj); @Override Map<String, Object> moduleFilterFields(); @Override Map<String, Object> artifactFilterFields(); }
ClassifierFilter implements Filter { @Override public boolean filter(final Object datamodelObj) { if(datamodelObj instanceof DbArtifact){ return classifier.equals( ((DbArtifact)datamodelObj).getClassifier()); } return false; } ClassifierFilter(final String classifier); @Override boolean filter(final Object datamodelObj); @Override Map<String, Object> moduleFilterFields(); @Override Map<String, Object> artifactFilterFields();  }