~ubuntu-branches/ubuntu/saucy/maven-enforcer/saucy

« back to all changes in this revision

Viewing changes to enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/utils/TestEnforcerRuleUtils.java

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2011-09-12 22:30:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: package-import@ubuntu.com-20110912223016-e2pk04avoq8bur7t
Tags: 1.0-1
* Team upload
* New upstream release.
* Add more Build-Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.apache.maven.plugins.enforcer.utils;
 
2
 
1
3
/*
2
4
 * Licensed to the Apache Software Foundation (ASF) under one
3
5
 * or more contributor license agreements.  See the NOTICE file
16
18
 * specific language governing permissions and limitations
17
19
 * under the License.
18
20
 */
19
 
package org.apache.maven.plugins.enforcer.utils;
20
21
 
21
22
import java.io.File;
22
23
import java.io.IOException;
38
39
// TODO: Auto-generated Javadoc
39
40
/**
40
41
 * The Class TestEnforcerRuleUtils.
41
 
 * 
 
42
 *
42
43
 * @author <a href="mailto:brianf@apache.org">Brian Fox</a>
43
44
 */
44
45
public class TestEnforcerRuleUtils
84
85
 
85
86
    /**
86
87
     * Test get models recursively bottom.
87
 
     * 
 
88
     *
88
89
     * @throws ArtifactResolutionException the artifact resolution exception
89
90
     * @throws ArtifactNotFoundException the artifact not found exception
90
91
     * @throws IOException Signals that an I/O exception has occurred.
122
123
 
123
124
    /**
124
125
     * Test get models recursively top.
125
 
     * 
 
126
     *
126
127
     * @throws ArtifactResolutionException the artifact resolution exception
127
128
     * @throws ArtifactNotFoundException the artifact not found exception
128
129
     * @throws IOException Signals that an I/O exception has occurred.
167
168
        parent.setGroupId( "org.apache.maven.plugins.enforcer.test" );
168
169
        parent.setArtifactId( "parent" );
169
170
        parent.setVersion( "1.0-SNAPSHOT" );
170
 
        
 
171
 
171
172
        MockProject project = new MockProject();
172
173
        project.setParent( parent );
173
 
        
 
174
 
174
175
        EnforcerRuleUtils utils = new EnforcerRuleUtils( EnforcerTestUtils.getHelper( project ) );
175
176
 
176
177
        List models =
236
237
 
237
238
    /**
238
239
     * Simpler wrapper to execute and deal with the expected result.
239
 
     * 
 
240
     *
240
241
     * @param rule the rule
241
242
     * @param helper the helper
242
243
     * @param shouldFail the should fail