1 package org.apache.maven.plugin.dependency.its;
2
3 /*
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 */
21
22 /**
23 * This class executes the IT tests. The setup will create a pom-test.xml from the plugin pom. The version is changed to
24 * "test" and the tests themselves turned off to avoid an infinite loop. The test version of the plugin is then built
25 * and installed to a new temporary local repo used to execute the tests. This only occurs once for the suite of tests.
26 * Each test below just uses the tools to execute Maven on the named project with the passed in goals.
27 *
28 * @author <a href="mailto:brianf@apache.org">Brian Fox</a> Copied from the Eclipse AbstractEclipsePluginTestCase v2.4
29 * @version $Id: DependencyPluginTest.java 1081021 2011-03-13 00:17:39Z hboutemy $
30 */
31 public class DependencyPluginTest
32 extends AbstractDependencyPluginITCase
33 {
34 protected void setUp()
35 throws Exception
36 {
37 // super.setUp();
38 }
39
40 protected void tearDown()
41 throws Exception
42 {
43
44 }
45
46 /**
47 * Test that build failures are reported. Simple Harness test essentially
48 */
49 public void testHarness()
50 {
51 /*
52 * try { testProject( "check-harness", "install" ); fail("Expected an exception reporting a build failure
53 * here"); } catch ( Exception e ) { //caught expected exceptions }
54 */
55 }
56
57 /**
58 * Test Resolve Mojo. Simple Harness test essentially
59 *
60 * @throws Exception any exception thrown during test
61 */
62 public void testSibling()
63 throws Exception
64 {
65 // testProject( "siblingReference", "compile" );
66 }
67
68 /**
69 * Test Resolve Mojo. Simple Harness test essentially
70 *
71 * @throws Exception any exception thrown during test
72 */
73 public void testResolve()
74 throws Exception
75 {
76 // testProject( "resolve", "dependency:resolve" );
77 }
78 }