1 package org.apache.maven.continuum.project.builder;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.net.URL;
23
24 import junit.framework.TestCase;
25
26 import org.apache.maven.continuum.model.project.BuildDefinitionTemplate;
27
28
29
30
31
32
33
34 public abstract class AbstractContinuumProjectBuilderTest
35 extends TestCase
36 {
37
38 private ContinuumProjectBuilder builder;
39
40 protected void setUp()
41 throws Exception
42 {
43 super.setUp();
44 builder = new ContinuumProjectBuilder();
45 }
46
47
48
49
50
51
52 public void disabledTestCreateMetadataFileURLStringString()
53 throws Exception
54 {
55 URL url = new URL( "https://someurl/pom.xml" );
56 String username = "myusername";
57 String password = "mypassword";
58 builder.createMetadataFile( url, username, password, new ContinuumProjectBuildingResult() );
59 }
60
61 private class ContinuumProjectBuilder
62 extends AbstractContinuumProjectBuilder
63 {
64
65 public ContinuumProjectBuildingResult buildProjectsFromMetadata( URL url, String username, String password )
66 throws ContinuumProjectBuilderException
67 {
68 return null;
69 }
70
71 public ContinuumProjectBuildingResult buildProjectsFromMetadata( URL url, String username, String password,
72 boolean recursiveProjects )
73 throws ContinuumProjectBuilderException
74 {
75 return null;
76 }
77
78 public ContinuumProjectBuildingResult buildProjectsFromMetadata( URL url, String username, String password,
79 boolean recursiveProjects,
80 BuildDefinitionTemplate buildDefinitionTemplate )
81 throws ContinuumProjectBuilderException
82 {
83 return null;
84 }
85
86 public BuildDefinitionTemplate getDefaultBuildDefinitionTemplate()
87 throws ContinuumProjectBuilderException
88 {
89 return null;
90 }
91
92 }
93
94 }