package org.hamcrest;

import static org.hamcrest.AbstractMatcherTest.assertDescription;
import junit.framework.TestCase;

public class CustomMatcherTest extends TestCase {

    public void testUsesStaticDescription() throws Exception {
        Matcher<String> matcher = new CustomMatcher<String>("I match strings") {
            public boolean matches(Object item) {
                return (item instanceof String);
            }
        };

        assertDescription("I match strings", matcher);
    }
}
