benjamin84 / fest

Automatically exported from code.google.com/p/fest
0 stars 0 forks source link

Support assertions for File #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
assertThat(file).isFile()
assertThat(file).isDirectory()
assertThat(file).doesNotExist()
assertThat(file).exist()

in Assertions: 
  /**
   * Creates a new instance of <code>{@link FileAssert}</code>.
   * @param actual the value to be the target of the assertions methods.
   * @return the created assertion object.
   */
  public static FileAssert assertThat(File actual) {
    return new FileAssert(actual);
  }

Original issue reported on code.google.com by cinconn...@gmail.com on 20 Dec 2007 at 2:51

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by Alex.Rui...@gmail.com on 20 Dec 2007 at 3:05

GoogleCodeExporter commented 9 years ago
Added:
- assertThat(file).hasSize(long)

Original comment by cinconn...@gmail.com on 21 Dec 2007 at 3:32

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks a lot David! :)

Original comment by Alex.Rui...@gmail.com on 21 Dec 2007 at 4:32

GoogleCodeExporter commented 9 years ago
Integrated contribution from David (many thanks!)

Original comment by wanghy1...@gmail.com on 23 Dec 2007 at 11:21

GoogleCodeExporter commented 9 years ago
Set the module as a label, instead of being part of the title.

Original comment by Alex.Rui...@gmail.com on 1 Dec 2008 at 1:43