org.apache.maven.plugins.enforcer
Class MockEnforcerRule
java.lang.Object
org.apache.maven.plugins.enforcer.MockEnforcerRule
- All Implemented Interfaces:
- EnforcerRule
public class MockEnforcerRule
- extends Object
- implements EnforcerRule
- Author:
- Brian Fox
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
failRule
public boolean failRule
cacheId
public String cacheId
isCacheable
public boolean isCacheable
isResultValid
public boolean isResultValid
executed
public boolean executed
MockEnforcerRule
public MockEnforcerRule(boolean fail)
MockEnforcerRule
public MockEnforcerRule(boolean fail,
String cacheId,
boolean isCacheable,
boolean isResultValid)
execute
public void execute(EnforcerRuleHelper helper)
throws EnforcerRuleException
- Specified by:
execute
in interface EnforcerRule
- Throws:
EnforcerRuleException
isFailRule
public boolean isFailRule()
- Returns:
- the failRule
setFailRule
public void setFailRule(boolean theFailRule)
- Parameters:
theFailRule
- the failRule to set
isResultValid
public boolean isResultValid()
- Returns:
- the isResultValid
setResultValid
public void setResultValid(boolean theIsResultValid)
- Parameters:
theIsResultValid
- the isResultValid to set
setCacheId
public void setCacheId(String theCacheId)
- Parameters:
theCacheId
- the cacheId to set
setCacheable
public void setCacheable(boolean theIsCacheable)
- Parameters:
theIsCacheable
- the isCacheable to set
getCacheId
public String getCacheId()
- Specified by:
getCacheId
in interface EnforcerRule
isCacheable
public boolean isCacheable()
- Specified by:
isCacheable
in interface EnforcerRule
isResultValid
public boolean isResultValid(EnforcerRule theCachedRule)
- Specified by:
isResultValid
in interface EnforcerRule
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.