Trait/Object

org.specs2.matcher

FileMatchers

Related Docs: object FileMatchers | package matcher

Permalink

trait FileMatchers extends FileBaseMatchers with FileBeHaveMatchers

The FileMatchers trait provides matchers which are applicable to files

Linear Supertypes
FileBeHaveMatchers, FileBaseMatchers, PathMatchers, PathBeHaveMatchers, BeHaveMatchers, PathBaseMatchers, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FileMatchers
  2. FileBeHaveMatchers
  3. FileBaseMatchers
  4. PathMatchers
  5. PathBeHaveMatchers
  6. BeHaveMatchers
  7. PathBaseMatchers
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class FileResultMatcher[T <: AnyRef { def getPath(): String }] extends AnyRef

    Permalink
    Definition Classes
    FileBeHaveMatchers
  2. class PathResultMatcher extends AnyRef

    Permalink
    Definition Classes
    PathBeHaveMatchers

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def aDirectory[T <: AnyRef { def getPath(): String }]: Matcher[AnyRef { def getPath(): String }]

    Permalink
    Definition Classes
    FileBeHaveMatchers
  5. def aDirectoryPath: PathMatcher

    Permalink
    Definition Classes
    PathBeHaveMatchers
  6. def aFile[T <: AnyRef { def getPath(): String }]: Matcher[AnyRef { def getPath(): String }]

    Permalink
    Definition Classes
    FileBeHaveMatchers
  7. def aFilePath: PathMatcher

    Permalink
    Definition Classes
    PathBeHaveMatchers
  8. def aHiddenPath: PathMatcher

    Permalink
    Definition Classes
    PathBeHaveMatchers
  9. def aReadablePath: PathMatcher

    Permalink
    Definition Classes
    PathBeHaveMatchers
  10. def aWritablePath: PathMatcher

    Permalink
    Definition Classes
    PathBeHaveMatchers
  11. def absolute[T <: AnyRef { def getPath(): String }]: Matcher[AnyRef { def getPath(): String }]

    Permalink
    Definition Classes
    FileBeHaveMatchers
  12. def absolutePath[T <: AnyRef { def getPath(): String }](path: String): Matcher[AnyRef { def getPath(): String }]

    Permalink
    Definition Classes
    FileBeHaveMatchers
  13. def anAbsolutePath: PathMatcher

    Permalink
    Definition Classes
    PathBeHaveMatchers
  14. def anExistingPath: PathMatcher

    Permalink
    Definition Classes
    PathBeHaveMatchers
  15. def asAbsolutePath(name: String): PathMatcher

    Permalink
    Definition Classes
    PathBeHaveMatchers
  16. def asCanonicalPath(name: String): PathMatcher

    Permalink
    Definition Classes
    PathBeHaveMatchers
  17. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  18. def be: NeutralMatcher[Any]

    Permalink
    Definition Classes
    BeHaveMatchers
  19. def beADirectory[T <: AnyRef { def getPath(): String }]: Matcher[T]

    Permalink

    matches if file.isDirectory

    matches if file.isDirectory

    Definition Classes
    FileBaseMatchers
  20. def beADirectoryPath: PathMatcher

    Permalink

    matches if new File(path).isDirectory

    matches if new File(path).isDirectory

    Definition Classes
    PathBaseMatchers
  21. def beAFile[T <: AnyRef { def getPath(): String }]: Matcher[T]

    Permalink

    matches if file.isFile

    matches if file.isFile

    Definition Classes
    FileBaseMatchers
  22. def beAFilePath: PathMatcher

    Permalink

    matches if new File(path).isFile

    matches if new File(path).isFile

    Definition Classes
    PathBaseMatchers
  23. def beAHiddenPath: PathMatcher

    Permalink

    matches if new File(path).isHidden

    matches if new File(path).isHidden

    Definition Classes
    PathBaseMatchers
  24. def beAReadablePath: PathMatcher

    Permalink

    matches if new File(path).canRead

    matches if new File(path).canRead

    Definition Classes
    PathBaseMatchers
  25. def beAWritablePath: PathMatcher

    Permalink

    matches if new File(path).canWrite

    matches if new File(path).canWrite

    Definition Classes
    PathBaseMatchers
  26. def beAbsolute[T <: AnyRef { def getPath(): String }]: Matcher[T]

    Permalink

    matches if file.isAbsolute

    matches if file.isAbsolute

    Definition Classes
    FileBaseMatchers
  27. def beAnAbsolutePath: PathMatcher

    Permalink

    matches if new File(path).isAbsolute

    matches if new File(path).isAbsolute

    Definition Classes
    PathBaseMatchers
  28. def beAnExistingPath: PathMatcher

    Permalink

    matches if new File(path).exists

    matches if new File(path).exists

    Definition Classes
    PathBaseMatchers
  29. def beEqualToIgnoringSep(other: String): PathMatcher

    Permalink

    matches if 2 paths are the same regardless of their separators

    matches if 2 paths are the same regardless of their separators

    Definition Classes
    PathBaseMatchers
  30. def beHidden[T <: AnyRef { def getPath(): String }]: Matcher[T]

    Permalink

    matches if file.isHidden

    matches if file.isHidden

    Definition Classes
    FileBaseMatchers
  31. def beReadable[T <: AnyRef { def getPath(): String }]: Matcher[T]

    Permalink

    matches if file.canRead

    matches if file.canRead

    Definition Classes
    FileBaseMatchers
  32. def beWritable[T <: AnyRef { def getPath(): String }]: Matcher[T]

    Permalink

    matches if file.canWrite

    matches if file.canWrite

    Definition Classes
    FileBaseMatchers
  33. def canonicalPath[T <: AnyRef { def getPath(): String }](path: String): Matcher[AnyRef { def getPath(): String }]

    Permalink
    Definition Classes
    FileBeHaveMatchers
  34. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  35. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  36. def equalToIgnoringSep(other: String): PathMatcher

    Permalink
    Definition Classes
    PathBeHaveMatchers
  37. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  38. def exist[T <: AnyRef { def getPath(): String }]: Matcher[T]

    Permalink

    matches if file.exists

    matches if file.exists

    Definition Classes
    FileBaseMatchers
  39. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  40. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  41. def have: NeutralMatcher[Any]

    Permalink
    Definition Classes
    BeHaveMatchers
  42. def haveAbsolutePath[T <: AnyRef { def getPath(): String }](path: String): Matcher[T]

    Permalink

    matches if file.getAbsolutePath == path

    matches if file.getAbsolutePath == path

    Definition Classes
    FileBaseMatchers
  43. def haveAsAbsolutePath(path: String): PathMatcher

    Permalink

    matches if new File(path).getAbsolutePath == absolutePath

    matches if new File(path).getAbsolutePath == absolutePath

    Definition Classes
    PathBaseMatchers
  44. def haveAsCanonicalPath(path: String): PathMatcher

    Permalink

    matches if new File(path).getCanonicalPath == canonicalPath

    matches if new File(path).getCanonicalPath == canonicalPath

    Definition Classes
    PathBaseMatchers
  45. def haveCanonicalPath[T <: AnyRef { def getPath(): String }](path: String): Matcher[T]

    Permalink

    matches if file.getCanonicalPath == path

    matches if file.getCanonicalPath == path

    Definition Classes
    FileBaseMatchers
  46. def haveList[T <: AnyRef { def getPath(): String }](list: String): Matcher[T]

    Permalink

    matches if file.list == list

    matches if file.list == list

    Definition Classes
    FileBaseMatchers
  47. def haveName[T <: AnyRef { def getPath(): String }](name: String): Matcher[T]

    Permalink

    matches if file.getName == name

    matches if file.getName == name

    Definition Classes
    FileBaseMatchers
  48. def haveParent[T <: AnyRef { def getPath(): String }](path: String): Matcher[T]

    Permalink

    matches if file.getParent == path

    matches if file.getParent == path

    Definition Classes
    FileBaseMatchers
  49. def haveParentPath(parent: String): PathMatcher

    Permalink

    matches if new File(path).getParent == parent

    matches if new File(path).getParent == parent

    Definition Classes
    PathBaseMatchers
  50. def havePathName(name: String): PathMatcher

    Permalink

    matches if new File(path).getName == name

    matches if new File(path).getName == name

    Definition Classes
    PathBaseMatchers
  51. def hidden[T <: AnyRef { def getPath(): String }]: Matcher[AnyRef { def getPath(): String }]

    Permalink
    Definition Classes
    FileBeHaveMatchers
  52. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  53. def listPaths(list: String*): PathMatcher

    Permalink

    matches if new File(path).list == list(files)

    matches if new File(path).list == list(files)

    Definition Classes
    PathBaseMatchers
  54. def name[T <: AnyRef { def getPath(): String }](name: String): Matcher[AnyRef { def getPath(): String }]

    Permalink
    Definition Classes
    FileBeHaveMatchers
  55. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  56. def not: NotMatcher[Any]

    Permalink
    Definition Classes
    BeHaveMatchers
  57. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  58. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  59. def parent[T <: AnyRef { def getPath(): String }](path: String): Matcher[AnyRef { def getPath(): String }]

    Permalink
    Definition Classes
    FileBeHaveMatchers
  60. def parentPath(parent: String): PathMatcher

    Permalink
    Definition Classes
    PathBeHaveMatchers
  61. def pathName(name: String): PathMatcher

    Permalink
    Definition Classes
    PathBeHaveMatchers
  62. def paths[T <: AnyRef { def getPath(): String }](list: String): Matcher[AnyRef { def getPath(): String }]

    Permalink
    Definition Classes
    FileBeHaveMatchers
  63. def readable[T <: AnyRef { def getPath(): String }]: Matcher[AnyRef { def getPath(): String }]

    Permalink
    Definition Classes
    FileBeHaveMatchers
  64. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  65. implicit def toFileResultMatcher[T <: AnyRef { def getPath(): String }](result: MatchResult[T]): FileResultMatcher[T]

    Permalink

    matcher aliases and implicits to use with BeVerb and HaveVerb

    matcher aliases and implicits to use with BeVerb and HaveVerb

    Definition Classes
    FileBeHaveMatchers
  66. implicit def toPathResultMatcher(result: MatchResult[String]): PathResultMatcher

    Permalink

    matcher aliases and implicits to use with be / have + matcher

    matcher aliases and implicits to use with be / have + matcher

    Definition Classes
    PathBeHaveMatchers
  67. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  68. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  70. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. def writable[T <: AnyRef { def getPath(): String }]: Matcher[AnyRef { def getPath(): String }]

    Permalink
    Definition Classes
    FileBeHaveMatchers

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from FileBeHaveMatchers

Inherited from FileBaseMatchers

Inherited from PathMatchers

Inherited from PathBeHaveMatchers

Inherited from BeHaveMatchers

Inherited from PathBaseMatchers

Inherited from AnyRef

Inherited from Any

Ungrouped