01: package org.apache.maven.project;
02:
03: /*
04: * Licensed to the Apache Software Foundation (ASF) under one
05: * or more contributor license agreements. See the NOTICE file
06: * distributed with this work for additional information
07: * regarding copyright ownership. The ASF licenses this file
08: * to you under the Apache License, Version 2.0 (the
09: * "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: import org.apache.maven.artifact.repository.ArtifactRepository;
23: import org.apache.maven.artifact.repository.DefaultArtifactRepository;
24: import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
25: import org.codehaus.plexus.util.FileUtils;
26:
27: import java.io.File;
28: import java.util.ArrayList;
29: import java.util.Iterator;
30: import java.util.List;
31:
32: public class SuperPomProjectBuilderTest extends
33: AbstractMavenProjectTestCase {
34: public void setUp() throws Exception {
35: super .setUp();
36:
37: projectBuilder = (DefaultMavenProjectBuilder) lookup(MavenProjectBuilder.ROLE);
38: }
39:
40: public void testBuildFromMiddlePom() throws Exception {
41: MavenProject project = projectBuilder
42: .buildStandaloneSuperProject();
43:
44: assertNotNull(project.getRemoteArtifactRepositories());
45:
46: assertNotNull(project.getPluginArtifactRepositories());
47: }
48: }
|