1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.scm.plugin;
20
21 import java.io.File;
22
23 import org.apache.maven.plugin.testing.AbstractMojoTestCase;
24 import org.apache.maven.scm.PlexusJUnit4TestCase;
25 import org.junit.After;
26 import org.junit.Before;
27
28 public abstract class AbstractJUnit4MojoTestCase extends AbstractMojoTestCase {
29 private static final PlexusJUnit4TestCase plexusJUnit4TestCase = new PlexusJUnit4TestCase();
30
31 @Before
32 public void setUp() throws Exception {
33 super.setUp();
34 plexusJUnit4TestCase.setUp();
35 }
36
37 @After
38 public void tearDown() throws Exception {
39 super.tearDown();
40 plexusJUnit4TestCase.tearDown();
41 }
42
43 public static String getBasedir() {
44 return plexusJUnit4TestCase.getBasedir();
45 }
46
47 public static File getTestFile(final String path) {
48 return plexusJUnit4TestCase.getTestFile(getBasedir(), path);
49 }
50 }