mil.dod.th.ose.test/src/mil/dod/th/ose/test/matchers/FileMatchers.java
public static Matcher<File> isDirectory()
    {
        return new TypeSafeMatcher<File>()
        {
            /** File being checked. */
            private File fileTested;

            @Override
            public boolean matchesSafely(File item)
            {
                fileTested = item;
                return item.isDirectory();
            }

            @Override
            public void describeTo(Description description)
            {
                description.appendText(" that ");
                description.appendValue(fileTested);
                description.appendText("is a directory");
            }
        };
    }
/**
     * Test if actually a file using {@link File#isDirectory()}.
     */
Test if actually a file using  File#isDirectory().
Test if actually a file using File#isDirectory () .
public static Matcher<File> isDirectory()
    {
        return new TypeSafeMatcher<File>()
        {
            /** File being checked. */
            private File fileTested;
            @Override
            public boolean matchesSafely(File item)
            {
                fileTested = item;
                return item.isDirectory();
            }
            @Override
            public void describeTo(Description description)
            {
                description.appendText(" that ");
                description.appendValue(fileTested);
                description.appendText("is a directory");
            }
        };
    }
public static Matcher < File > isDirectory ( ) { return new TypeSafeMatcher < File > ( ) { /** File being checked. */ private File fileTested ; @ Override public boolean matchesSafely ( File item ) { fileTested = item ; return item . isDirectory ( ) ; } @ Override public void describeTo ( Description description ) { description . appendText ( " that " ) ; description . appendValue ( fileTested ) ; description . appendText ( "is a directory" ) ; } } ; }
Test if actually a file using {@link File#isDirectory()}.
Test if actually a file using { @link File#isDirectory () } .