blob: 54798d488cad8fcbea5eb9ad789c889a943e953c [file] [log] [blame]
package org.apache.maven.plugins.enforcer;
import junit.framework.TestCase;
import org.apache.maven.enforcer.rule.api.EnforcerRuleException;
/**
* Test AlwaysPass rule.
* @author Ben Lidgey
* @see AlwaysPass
*/
public class TestAlwaysPass extends TestCase
{
public void testExecute()
{
final AlwaysPass rule = new AlwaysPass();
try
{
// execute rule -- should NOT throw EnforcerRuleException
rule.execute( EnforcerTestUtils.getHelper() );
assertTrue( true );
}
catch ( EnforcerRuleException e )
{
fail( "Should NOT throw EnforcerRuleException" );
}
}
}