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

org.approvaltests.scrubbers.MultiScrubber Maven / Gradle / Ivy

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

import com.spun.util.ArrayUtils;
import org.approvaltests.core.Scrubber;

public class MultiScrubber implements Scrubber
{
  private final Scrubber[] scrubbers;
  public MultiScrubber(Scrubber one, Scrubber[] others)
  {
    this.scrubbers = ArrayUtils.combine(one, others);
  }
  @Override
  public String scrub(String input)
  {
    for (Scrubber scrubber : scrubbers)
    {
      input = scrubber.scrub(input);
    }
    return input;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy