All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.approvaltests.reporters.PitReporter Maven / Gradle / Ivy

There is a newer version: 24.14.2
Show newest version
package org.approvaltests.reporters;

import org.approvaltests.core.ApprovalFailureReporter;

public class PitReporter implements ApprovalFailureReporter
{
  public static final PitReporter INSTANCE = new PitReporter();
  @Override
  public boolean report(String received, String approved)
  {
    // do nothing!
    return isWorkingInThisEnvironment(received);
  }
  private boolean isWorkingInThisEnvironment(String forFile)
  {
    try
    {
      Class exists = Class.forName("org.pitest.testapi.TestUnit");
      return exists != null;
    }
    catch (ClassNotFoundException e)
    {
      return false;
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy