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

com.connect_group.thymeleaf.testing.hamcrest.OccursOnce Maven / Gradle / Ivy

The newest version!
package com.connect_group.thymeleaf.testing.hamcrest;


import java.util.Collection;
import org.hamcrest.Description;
import org.hamcrest.TypeSafeMatcher;


public class OccursOnce extends TypeSafeMatcher> {

  public OccursOnce() {
  }

  @Override
  public void describeTo(Description description) {
    description.appendText("occurs once");

  }

  @Override
  public boolean matchesSafely(Collection items) {
    return items != null && items.size() == 1;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy