net.javacrumbs.smock.common
Class SourceAndControlAssertionError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
net.javacrumbs.smock.common.SourceAndControlAssertionError
- All Implemented Interfaces:
- Serializable
public class SourceAndControlAssertionError
- extends AssertionError
Subclass of AssertionError that also contains a message and control
message Source for more context.
- Author:
- Lukas Krecan, Arjen Poutsma
- See Also:
- Serialized Form
SourceAndControlAssertionError
public SourceAndControlAssertionError(String message,
String messageLabel,
Source messageSource,
String controlLabel,
Source controlSource)
- Creates assertion error.
- Parameters:
message - messageLabel - messageSource - controlLabel - controlSource -
getMessage
public String getMessage()
- Overrides:
getMessage in class Throwable
getControlLabel
public String getControlLabel()
getControlSource
public Source getControlSource()
Copyright © 2011. All Rights Reserved.