/*  Copyright (c) 2000-2010 hamcrest.org
 */
package org.hamcrest.core;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsAnything.anything;

import org.hamcrest.AbstractMatcherTest;
import org.hamcrest.Matcher;

public class IsAnythingTest extends AbstractMatcherTest {

    @Override
    protected Matcher<?> createMatcher() {
        return anything();
    }

    public void testAlwaysEvaluatesToTrue() {
        assertThat(null, anything());
        assertThat(new Object(), anything());
        assertThat("hi", anything());
    }

    public void testHasUsefulDefaultDescription() {
        assertDescription("ANYTHING", anything());
    }

    public void testCanOverrideDescription() {
        String description = "description";
        assertDescription(description, anything(description));
    }

}

@@ -97,28 +97,100 @@
 est.
-MatcherAsser
+AbstractMatcherTest.assertDescription;%0Aimport static org.hamcrest.AbstractMatcherTes
 t.assert
 That
@@ -185,20 +185,23 @@
 t.assert
-That
+Matches
 ;%0Aimport
@@ -268,35 +268,23 @@
 amcrest.
-Abstract
 Matcher
-Test
 ;%0Aimport
@@ -288,32 +288,26 @@
 ort org.
-hamcrest.Matcher
+junit.Test
 ;%0A%0Apubli
@@ -308,16 +308,22 @@
 %0Apublic 
+final 
 class Is
@@ -339,134 +339,124 @@
 est 
-extends AbstractMatcherTest %7B%0A%0A    @Override%0A    protected Matcher%3C?%3E createMatcher() %7B%0A        return anything();
+%7B%0A%0A    private final Matcher%3CObject%3E matcher = anything();%0A%0A    private static class CustomThing %7B %7D
 %0A    
-%7D%0A
 %0A    
+@Test 
 publ
@@ -466,14 +466,14 @@
 void
- testA
+%0A    a
 lway
@@ -511,29 +511,50 @@
 sert
-That(
+Matches(%22didn't match 
 null
+%22
 , 
-anything()
+matcher, null
 );%0A 
@@ -570,75 +570,202 @@
 sert
-That(new Object(), anything());%0A        assertThat(%22hi%22, anything()
+Matches(%22didn't match Object%22, matcher, new Object());%0A        assertMatches(%22didn't match custom object%22, matcher, new CustomThing());%0A        assertMatches(%22didn't match String%22, matcher, %22hi%22
 );%0A 
@@ -766,32 +766,38 @@
 i%22);%0A    %7D%0A%0A    
+@Test 
 public void test
@@ -795,14 +795,14 @@
 void
- testH
+%0A    h
 asUs
@@ -866,26 +866,23 @@
 THING%22, 
-anything()
+matcher
 );%0A    %7D
@@ -887,16 +887,22 @@
  %7D%0A%0A    
+@Test 
 public v
@@ -908,14 +908,14 @@
 void
- testC
+%0A    c
 anOv

convert to JUnit4 test