View Javadoc
1   package org.apache.maven.plugins.enforcer;
2   
3   import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException;
4   import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
5   
6   /*
7    * Licensed to the Apache Software Foundation (ASF) under one
8    * or more contributor license agreements.  See the NOTICE file
9    * distributed with this work for additional information
10   * regarding copyright ownership.  The ASF licenses this file
11   * to you under the Apache License, Version 2.0 (the
12   * "License"); you may not use this file except in compliance
13   * with the License.  You may obtain a copy of the License at
14   *
15   *  http://www.apache.org/licenses/LICENSE-2.0
16   *
17   * Unless required by applicable law or agreed to in writing,
18   * software distributed under the License is distributed on an
19   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20   * KIND, either express or implied.  See the License for the
21   * specific language governing permissions and limitations
22   * under the License.
23   */
24  
25  import junit.framework.TestCase;
26  
27  /**
28   * @author <a href="mailto:brianf@apache.org">Brian Fox</a>
29   * 
30   */
31  public class TestDefaultEnforcementRuleHelper
32      extends TestCase
33  {
34      public void testHelper()
35          throws ComponentLookupException, ExpressionEvaluationException
36      {
37          DefaultEnforcementRuleHelper helper = (DefaultEnforcementRuleHelper) EnforcerTestUtils.getHelper();
38  
39          assertNotNull( helper.getLog() );
40          assertNotNull( helper.evaluate( "${session}" ) );
41          assertNotNull( helper.evaluate( "${project}" ) );
42  
43      }
44  }