com.madgag.hamcrest
Class FileLengthMatcher

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<File>
          extended by com.madgag.hamcrest.FileLengthMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<File>, org.hamcrest.SelfDescribing

public class FileLengthMatcher
extends org.hamcrest.TypeSafeMatcher<File>


Method Summary
 void describeTo(org.hamcrest.Description description)
           
 boolean matchesSafely(File file)
           
static
<T> org.hamcrest.Matcher<File>
ofLength(long length)
           
 
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matches
 
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

matchesSafely

public boolean matchesSafely(File file)
Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<File>

describeTo

public void describeTo(org.hamcrest.Description description)

ofLength

public static <T> org.hamcrest.Matcher<File> ofLength(long length)


Copyright © 2011. All Rights Reserved.