org.virtualmock.rule
Interface Rule

All Known Implementing Classes:
AllRecordedCallsMustBeInvokedRule

public interface Rule

An interface the all VirtualMock Rules must implement.

Version:
$Revision: 1.11 $
Author:
Chad Woolley

Field Summary
static int FAIL
          Constant for the FAIL enforcement level.
static int IGNORE
          Constant for the IGNORE enforcement level.
static int WARN
          Constant for the WARN enforcement level.
 
Method Summary
 int getEnforcementLevel()
          Accessor.
 java.lang.String getKey()
          Accessor.
 java.lang.String[] getViolationMessages()
          Get messages (if any) resulting from the violation of this rule.
 

Field Detail

FAIL

public static final int FAIL
Constant for the FAIL enforcement level.

See Also:
Constant Field Values

IGNORE

public static final int IGNORE
Constant for the IGNORE enforcement level.

See Also:
Constant Field Values

WARN

public static final int WARN
Constant for the WARN enforcement level.

See Also:
Constant Field Values
Method Detail

getEnforcementLevel

public int getEnforcementLevel()
Accessor.

Returns:
the enforcementLevel for this rule

getKey

public java.lang.String getKey()
Accessor.

Returns:
the key for this rule

getViolationMessages

public java.lang.String[] getViolationMessages()
Get messages (if any) resulting from the violation of this rule.

Returns:
the messages (if any) resulting from the violation of this rule


Copyright © 2003-2005 Virtual Mock. All Rights Reserved.