com.connect_group.thymeleaf.testing.hamcrest.HasChildren 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 com.connect_group.thymesheet.query.HtmlElement;
import org.hamcrest.Description;
import org.hamcrest.TypeSafeMatcher;
public class HasChildren extends TypeSafeMatcher {
@Override
public void describeTo(Description description) {
description.appendText("has children");
}
@Override
public boolean matchesSafely(HtmlElement item) {
return item.getElement().hasChildren();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy