com.atlassian.plugin.test
Class Matchers

java.lang.Object
  extended by com.atlassian.plugin.test.Matchers

public class Matchers
extends Object


Constructor Summary
Matchers()
           
 
Method Summary
static org.hamcrest.Matcher<String> containsAllStrings(String... substrings)
           
static org.hamcrest.Matcher<File> fileNamed(String name)
          Obtain a matcher for File instances with given name.
static org.hamcrest.Matcher<URI> uriWithPath(String path)
          Obtain a matcher for URI instances with given path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Matchers

public Matchers()
Method Detail

fileNamed

public static org.hamcrest.Matcher<File> fileNamed(String name)
Obtain a matcher for File instances with given name.

Parameters:
name - the expected name of the file.
Returns:
a matcher which matches files whose File.getName() is Matchers.equalTo(T) name.

uriWithPath

public static org.hamcrest.Matcher<URI> uriWithPath(String path)
Obtain a matcher for URI instances with given path.

Parameters:
path - the expected path of the URI.
Returns:
a matcher which matches URIs whoe URI.getPath() is Matchers.equalTo(T) path.

containsAllStrings

public static org.hamcrest.Matcher<String> containsAllStrings(String... substrings)


Copyright © 2015 Atlassian. All rights reserved.