public class Expectation extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Expectation.ExpectedNotification |
| Modifier and Type | Field and Description |
|---|---|
static int |
MATCH_NOTIFICATION_MESSAGE |
static int |
MATCH_NOTIFICATION_MESSAGECONTAINS_COUNT |
static int |
MATCH_NOTIFICATION_SOURCE_AND_MESSAGE |
static int |
MATCH_NOTIFICATION_SOURCE_AND_MESSAGECONTAINS |
static int |
MATCH_NOTIFICATION_SOURCE_AND_USERDATA |
| Constructor and Description |
|---|
Expectation(ObjectName mbean) |
| Modifier and Type | Method and Description |
|---|---|
Expectation |
expectAttribute(String attribute,
Object value) |
Expectation |
expectMBeanAt(String url) |
Expectation |
expectNotification(String notificationType,
Object source,
String message,
int matchCount,
int mode) |
Expectation |
expectNotification(String notificationType,
Object source,
String message,
Object userData,
int mode)
Make sure you add notification to expectation in order expected so that
validation happens in correct order.
|
Expectation |
expectOperation(String operationName,
Object result) |
Map<String,Object> |
getAttributes() |
List<Expectation.ExpectedNotification> |
getNotifications() |
ObjectName |
getObjectName() |
ObjectName |
getObjectName(String url2) |
Map<String,Object> |
getOperations() |
String |
getUrl() |
String |
toString() |
public static final int MATCH_NOTIFICATION_SOURCE_AND_MESSAGE
public static final int MATCH_NOTIFICATION_MESSAGE
public static final int MATCH_NOTIFICATION_MESSAGECONTAINS_COUNT
public static final int MATCH_NOTIFICATION_SOURCE_AND_USERDATA
public static final int MATCH_NOTIFICATION_SOURCE_AND_MESSAGECONTAINS
public Expectation(ObjectName mbean)
public Expectation expectNotification(String notificationType, Object source, String message, int matchCount, int mode)
public Expectation expectNotification(String notificationType, Object source, String message, Object userData, int mode)
notificationType - userData - source - public Expectation expectMBeanAt(String url)
public Expectation expectAttribute(String attribute, Object value)
public Expectation expectOperation(String operationName, Object result)
public String getUrl()
public List<Expectation.ExpectedNotification> getNotifications()
public ObjectName getObjectName()
public ObjectName getObjectName(String url2)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.