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