com.objogate.wl.swing.matcher.EmptyCollectionMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of windowlicker-swing Show documentation
Show all versions of windowlicker-swing Show documentation
This is the Windowlicker Swing library.
The newest version!
package com.objogate.wl.swing.matcher;
import java.util.Collection;
import org.hamcrest.Description;
import org.hamcrest.Factory;
import org.hamcrest.Matcher;
import org.hamcrest.TypeSafeMatcher;
public class EmptyCollectionMatcher> extends TypeSafeMatcher {
@Override
public boolean matchesSafely(C c) {
return c.isEmpty();
}
public void describeTo(Description description) {
description.appendText("an empty collection");
}
@Factory
public static > Matcher isEmpty() {
return new EmptyCollectionMatcher();
}
}