com.connect_group.thymeleaf.testing.hamcrest.OccursOnce Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of thymeleaf-tdd Show documentation
Show all versions of thymeleaf-tdd Show documentation
Test-Driven Development framework for Thymeleaf and Thymesheet
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