public class ExpectDatabase extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExpectDatabase.ExpectDatabaseEntry |
| Constructor and Description |
|---|
ExpectDatabase(String[] searchPkgPrefixs) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
Outcome outcome,
ConfigurationMatcher configurationMatcher) |
void |
add(String name,
Outcome outcome,
ConfigurationMatcher configurationMatcher,
ExceptionMatcher exceptionMatcher) |
void |
clear() |
List<ExpectDatabase.ExpectDatabaseEntry> |
getExpectDatabaseEntries() |
void |
getExpectDatabaseEntries(Expect expect,
List<ExpectDatabase.ExpectDatabaseEntry> expectEntries) |
String |
handleException(Object ctx,
Exception e) |
String |
handleFailure(Object ctx)
Returns the Expect configuration that matches.
|
String |
handleSuccess(Object ctx)
Returns the Expect configuration that matches.
|
void |
remove(String name) |
String |
toString() |
public ExpectDatabase(String[] searchPkgPrefixs)
public void add(String name, Outcome outcome, ConfigurationMatcher configurationMatcher)
public void add(String name, Outcome outcome, ConfigurationMatcher configurationMatcher, ExceptionMatcher exceptionMatcher)
public void remove(String name)
public void clear()
public String handleSuccess(Object ctx) throws UnexpectedException
ctx, - referenceUnexpectedException - When a failure was supposed to happen.public String handleFailure(Object ctx) throws UnexpectedException
ctx, - referenceUnexpectedException - When a failure was supposed to happen.public String handleException(Object ctx, Exception e) throws UnexpectedException
ctx, - referencee, - exceptionUnexpectedException - on errorpublic List<ExpectDatabase.ExpectDatabaseEntry> getExpectDatabaseEntries()
public void getExpectDatabaseEntries(Expect expect, List<ExpectDatabase.ExpectDatabaseEntry> expectEntries)
Copyright 2004-2020 Solace Corporation. All rights reserved.