com.atlassian.plugin.test
Class Matchers
java.lang.Object
com.atlassian.plugin.test.Matchers
public class Matchers
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Matchers
public Matchers()
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.