Skip to end of metadata
Go to start of metadata

Testing File Attributes using Hamcrest

© time4tea technology ltd 2007 - Freely redistributable as long as source is acknowledged (CC BY 3.0)
  1. Oct 16, 2009


    Is this available in a maven artifact? I'd like to use this class, but without copying the source into my project.

    Thanks for creating this great stuff.

    Best regards,

    Kees van Dieren

    1. Oct 17, 2009

      Thanks for the feedback!

      No sorry - we don't use maven. We think its a bit rubbish.

      Please feel free to copy the source though. Its just one file.



  2. Nov 11, 2009


    It would be nice to see an overloaded version of sized(), not just

    public static Matcher<File> sized(final Matcher<Long> size)


    public static Matcher<File> sized(final long size)

    too. The necessity to insert a Matcher is IMHO a bit restricting for normal usages.

    1. Nov 12, 2009

      I'm of course happy to add that - but it doesn't seem like a "stretch target" to pop in if you need it!


  3. Nov 16, 2009


    You should get Nat to show you the new version of Hamcrest with mismatch descriptions.

    1. Nov 17, 2009

      Hi Steve - Will do - JUnit & Hamcrest weren't happy together for a while , but I hear they are now reconciled.