| Package | Description |
|---|---|
| net.sf.expectit |
Classes for implementing expect-like functionality.
|
| net.sf.expectit.interact |
Classes for interact operation support.
|
| net.sf.expectit.matcher |
Classes for different types of match operations.
|
| Modifier and Type | Method and Description |
|---|---|
MultiResult |
Expect.expect(long timeoutMs,
Matcher<?>... matcher)
Deprecated.
This method is deprecated and will be removed. Use
Expect.withTimeout(long, java.util.concurrent.TimeUnit) to change the timeout for the
expect operation. |
<R extends Result> |
Expect.expect(long timeoutMs,
Matcher<R> matcher)
Deprecated.
This method is deprecated and will be removed. Use
Expect.withTimeout(long, java.util.concurrent.TimeUnit) to change the timeout for the
expect operation. |
MultiResult |
Expect.expect(Matcher<?>... matchers)
Blocks until all the given matchers match against the first input stream using the default
timeout.
|
<R extends Result> |
Expect.expect(Matcher<R> matcher)
Blocks until the given matcher matches against the first input stream using the default
timeout.
|
MultiResult |
Expect.expectIn(int input,
long timeoutMs,
Matcher<?>... matchers)
Deprecated.
This method is deprecated and will be removed. Use
Expect.withTimeout(long, java.util.concurrent.TimeUnit) to change the timeout for the
expect operation. |
<R extends Result> |
Expect.expectIn(int input,
long timeoutMs,
Matcher<R> matcher)
Deprecated.
This method is deprecated and will be removed. Use
Expect.withTimeout(long, java.util.concurrent.TimeUnit) to change the timeout for the
expect operation. |
<R extends Result> |
Expect.expectIn(int input,
Matcher<R> matcher)
Blocks until the given matcher matches against the given input stream using the default
timeout.
|
| Modifier and Type | Method and Description |
|---|---|
<R extends Result> |
InteractBuilder.until(Matcher<R> matcher)
Enters the interact loop and sets the matching predicate for the exit condition.
|
<R extends Result> |
InteractBuilder.when(Matcher<R> matcher)
Sets the matching predicate for the action condition.
|
| Modifier and Type | Method and Description |
|---|---|
static Matcher<MultiResult> |
Matchers.allOf(Matcher<?>... matchers)
Creates a matcher that matches if the examined input matches all of the specified
matchers.
|
static Matcher<MultiResult> |
Matchers.anyOf(Matcher<?>... matchers)
Creates a matcher that matches if the examined input matches any of the specified
matchers.
|
static Matcher<Result> |
Matchers.anyString()
Creates a matcher that matches when at least one character exists in the input buffer.
|
static Matcher<Result> |
Matchers.contains(String string)
Creates a matcher of
String that matches when examined input contains the given
substring. |
static Matcher<Result> |
Matchers.eof()
Creates a matcher that matches if input reaches the end of stream.
|
static Matcher<Result> |
Matchers.exact(String exact)
Creates a matcher that matches when the given string is equal to the
input buffer contents.
|
static Matcher<Result> |
Matchers.matches(Pattern pattern)
Creates a matcher of
Pattern that matches when examined input fully matches
the given regular
expression. |
static Matcher<Result> |
Matchers.matches(String pattern)
Creates a matcher of
String that matches when examined input fully matches
the given regular
expression. |
static Matcher<Result> |
Matchers.regexp(Pattern pattern)
Creates a matcher of
Pattern that matches when examined input contains the
given regular
expression. |
static Matcher<Result> |
Matchers.regexp(String pattern)
Creates a matcher of
String that matches when examined input contains the
given regular
expression. |
static Matcher<MultiResult> |
Matchers.sequence(Matcher<?>... matchers)
Matches the given matchers one by one.
|
static Matcher<Result> |
Matchers.startsWith(String prefix)
Creates a matcher that matches when the input buffer starts with the given string.
|
static Matcher<MultiResult> |
Matchers.times(int number,
Matcher<?> matcher)
Creates a matcher that matches if the given
matcher matches the number of
times. |
| Modifier and Type | Method and Description |
|---|---|
static Matcher<MultiResult> |
Matchers.allOf(Matcher<?>... matchers)
Creates a matcher that matches if the examined input matches all of the specified
matchers.
|
static Matcher<MultiResult> |
Matchers.anyOf(Matcher<?>... matchers)
Creates a matcher that matches if the examined input matches any of the specified
matchers.
|
static Matcher<MultiResult> |
Matchers.sequence(Matcher<?>... matchers)
Matches the given matchers one by one.
|
static Matcher<MultiResult> |
Matchers.times(int number,
Matcher<?> matcher)
Creates a matcher that matches if the given
matcher matches the number of
times. |
Copyright © 2014–2018 Alexey Gavrilov and contributors. All rights reserved.