public class MockEnforcerRule extends Object implements org.apache.maven.enforcer.rule.api.EnforcerRule
Modifier and Type | Field and Description |
---|---|
String |
cacheId |
boolean |
executed |
boolean |
failRule |
boolean |
isCacheable |
boolean |
isResultValid |
Constructor and Description |
---|
MockEnforcerRule(boolean fail) |
MockEnforcerRule(boolean fail,
String cacheId,
boolean isCacheable,
boolean isResultValid) |
Modifier and Type | Method and Description |
---|---|
void |
execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) |
String |
getCacheId() |
boolean |
isCacheable() |
boolean |
isFailRule() |
boolean |
isResultValid() |
boolean |
isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule theCachedRule) |
void |
setCacheable(boolean theIsCacheable) |
void |
setCacheId(String theCacheId) |
void |
setFailRule(boolean theFailRule) |
void |
setResultValid(boolean theIsResultValid) |
public boolean failRule
public boolean isCacheable
public boolean isResultValid
public boolean executed
public MockEnforcerRule(boolean fail)
public MockEnforcerRule(boolean fail, String cacheId, boolean isCacheable, boolean isResultValid)
public void execute(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper) throws org.apache.maven.enforcer.rule.api.EnforcerRuleException
execute
in interface org.apache.maven.enforcer.rule.api.EnforcerRule
org.apache.maven.enforcer.rule.api.EnforcerRuleException
public boolean isFailRule()
public void setFailRule(boolean theFailRule)
theFailRule
- the failRule to setpublic boolean isResultValid()
public void setResultValid(boolean theIsResultValid)
theIsResultValid
- the isResultValid to setpublic void setCacheId(String theCacheId)
theCacheId
- the cacheId to setpublic void setCacheable(boolean theIsCacheable)
theIsCacheable
- the isCacheable to setpublic String getCacheId()
getCacheId
in interface org.apache.maven.enforcer.rule.api.EnforcerRule
public boolean isCacheable()
isCacheable
in interface org.apache.maven.enforcer.rule.api.EnforcerRule
public boolean isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule theCachedRule)
isResultValid
in interface org.apache.maven.enforcer.rule.api.EnforcerRule
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.