@Test public void testAccept() { boolean result = filter.accept(releaseId); Assertions.assertThat(result).isEqualTo(expectedResult); }
public boolean accept(ReleaseId releaseId) { if (releaseId == null) { throw new IllegalArgumentException("ReleaseId can not be null!"); } return matches(groupId, releaseId.getGroupId()) && matches(artifactId, releaseId.getArtifactId()) && matches(version, releaseId.getVersion()); }
ReleaseIdFilter { public boolean accept(ReleaseId releaseId) { if (releaseId == null) { throw new IllegalArgumentException("ReleaseId can not be null!"); } return matches(groupId, releaseId.getGroupId()) && matches(artifactId, releaseId.getArtifactId()) && matches(version, releaseId.getVersion()); } }
ReleaseIdFilter { public boolean accept(ReleaseId releaseId) { if (releaseId == null) { throw new IllegalArgumentException("ReleaseId can not be null!"); } return matches(groupId, releaseId.getGroupId()) && matches(artifactId, releaseId.getArtifactId()) && matches(version, releaseId.getVersion()); } private  ReleaseIdFilter();  ReleaseIdFilter(String groupId, String artifactId, String version);  ReleaseIdFilter(ReleaseId releaseId); }
ReleaseIdFilter { public boolean accept(ReleaseId releaseId) { if (releaseId == null) { throw new IllegalArgumentException("ReleaseId can not be null!"); } return matches(groupId, releaseId.getGroupId()) && matches(artifactId, releaseId.getArtifactId()) && matches(version, releaseId.getVersion()); } private  ReleaseIdFilter();  ReleaseIdFilter(String groupId, String artifactId, String version);  ReleaseIdFilter(ReleaseId releaseId); String getGroupId(); String getArtifactId(); String getVersion(); boolean accept(ReleaseId releaseId); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
ReleaseIdFilter { public boolean accept(ReleaseId releaseId) { if (releaseId == null) { throw new IllegalArgumentException("ReleaseId can not be null!"); } return matches(groupId, releaseId.getGroupId()) && matches(artifactId, releaseId.getArtifactId()) && matches(version, releaseId.getVersion()); } private  ReleaseIdFilter();  ReleaseIdFilter(String groupId, String artifactId, String version);  ReleaseIdFilter(ReleaseId releaseId); String getGroupId(); String getArtifactId(); String getVersion(); boolean accept(ReleaseId releaseId); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); static final ReleaseIdFilter ACCEPT_ALL; }