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

mockit.external.hamcrest.core.IsAnything Maven / Gradle / Ivy

/*  Copyright (c) 2000-2006 hamcrest.org
 */
package mockit.external.hamcrest.core;

import mockit.external.hamcrest.*;

/**
 * A matcher that always returns true.
 */
public final class IsAnything extends BaseMatcher
{
   private final String message;

   public IsAnything()
   {
      this("ANYTHING");
   }

   public IsAnything(String message)
   {
      this.message = message;
   }

   public boolean matches(Object o)
   {
      return true;
   }

   public void describeTo(Description description)
   {
      description.appendText(message);
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy