@@ -0,0 +1,1802 @@
+/*%0A * Copyright 2010 Henry Coles%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22); %0A * you may not use this file except in compliance with the License. %0A * You may obtain a copy of the License at %0A * %0A * http://www.apache.org/licenses/LICENSE-2.0 %0A * %0A * Unless required by applicable law or agreed to in writing, %0A * software distributed under the License is distributed on an %22AS IS%22 BASIS, %0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %0A * See the License for the specific language governing permissions and limitations under the License. %0A */%0A%0Apackage org.pitest.junit;%0A%0Aimport org.junit.runner.Description;%0Aimport org.junit.runner.manipulation.Filter;%0A%0Apublic class DescriptionFilter extends Filter %7B%0A%0A  private final String desc;%0A%0A  public DescriptionFilter(final String description) %7B%0A    this.desc = description;%0A  %7D%0A%0A  @Override%0A  public boolean shouldRun(final Description description) %7B%0A    return description.toString().equals(this.desc);%0A  %7D%0A%0A  @Override%0A  public String describe() %7B%0A    return this.desc;%0A  %7D%0A%0A  @Override%0A  public String toString() %7B%0A    return describe();%0A  %7D%0A%0A  @Override%0A  public int hashCode() %7B%0A    final int prime = 31;%0A    int result = 1;%0A    result = prime * result + ((this.desc == null) ? 0 : this.desc.hashCode());%0A    return result;%0A  %7D%0A%0A  @Override%0A  public boolean equals(final Object obj) %7B%0A    if (this == obj) %7B%0A      return true;%0A    %7D%0A    if (obj == null) %7B%0A      return false;%0A    %7D%0A    if (getClass() != obj.getClass()) %7B%0A      return false;%0A    %7D%0A    final DescriptionFilter other = (DescriptionFilter) obj;%0A    if (this.desc == null) %7B%0A      if (other.desc != null) %7B%0A        return false;%0A      %7D%0A    %7D else if (!this.desc.equals(other.desc)) %7B%0A      return false;%0A    %7D%0A    return true;%0A  %7D%0A%0A%7D%0A

Support for atomic filterable junit4 tests and junit3 suite methods