Package com.identity4j.util.expect
Class DefaultExpectMatcher
- java.lang.Object
-
- com.identity4j.util.expect.DefaultExpectMatcher
-
- All Implemented Interfaces:
ExpectMatcher
public class DefaultExpectMatcher extends Object implements ExpectMatcher
-
-
Constructor Summary
Constructors Constructor Description DefaultExpectMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(String line, String pattern)Match a command output line against a defined pattern.
-
-
-
Method Detail
-
matches
public boolean matches(String line, String pattern)
Description copied from interface:ExpectMatcherMatch a command output line against a defined pattern.- Specified by:
matchesin interfaceExpectMatcher- Parameters:
line- the line of output to searchpattern- the pattern required- Returns:
- boolean
-
-