001package org.apache.maven.plugins.enforcer; 002 003import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException; 004 005/* 006 * Licensed to the Apache Software Foundation (ASF) under one 007 * or more contributor license agreements. See the NOTICE file 008 * distributed with this work for additional information 009 * regarding copyright ownership. The ASF licenses this file 010 * to you under the Apache License, Version 2.0 (the 011 * "License"); you may not use this file except in compliance 012 * with the License. You may obtain a copy of the License at 013 * 014 * http://www.apache.org/licenses/LICENSE-2.0 015 * 016 * Unless required by applicable law or agreed to in writing, 017 * software distributed under the License is distributed on an 018 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 019 * KIND, either express or implied. See the License for the 020 * specific language governing permissions and limitations 021 * under the License. 022 */ 023 024import org.junit.jupiter.api.Test; 025 026import static org.junit.jupiter.api.Assertions.assertNotNull; 027 028/** 029 * @author <a href="mailto:brianf@apache.org">Brian Fox</a> 030 */ 031public class TestDefaultEnforcementRuleHelper 032{ 033 @Test 034 public void testHelper() 035 throws ExpressionEvaluationException 036 { 037 DefaultEnforcementRuleHelper helper = (DefaultEnforcementRuleHelper) EnforcerTestUtils.getHelper(); 038 039 assertNotNull( helper.getLog() ); 040 assertNotNull( helper.evaluate( "${session}" ) ); 041 assertNotNull( helper.evaluate( "${project}" ) ); 042 043 } 044}