View Javadoc
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.eclipse.writers.testutils;
20  
21  import java.util.ArrayList;
22  import java.util.List;
23  
24  import org.apache.maven.plugin.eclipse.EclipseSourceDir;
25  import org.apache.maven.plugin.eclipse.writers.EclipseWriterConfig;
26  import org.apache.maven.plugin.ide.IdeDependency;
27  
28  public class TestEclipseWriterConfig
29      extends EclipseWriterConfig
30  {
31  
32      public List getBuildCommands()
33      {
34          List result = super.getBuildCommands();
35  
36          if ( result == null )
37          {
38              result = new ArrayList();
39          }
40  
41          return result;
42      }
43  
44      public List getClasspathContainers()
45      {
46          List result = super.getClasspathContainers();
47  
48          if ( result == null )
49          {
50              result = new ArrayList();
51          }
52  
53          return result;
54      }
55  
56      public IdeDependency[] getDeps()
57      {
58          IdeDependency[] deps = super.getDeps();
59  
60          if ( deps == null )
61          {
62              deps = new IdeDependency[0];
63          }
64  
65          return deps;
66      }
67  
68      public List getProjectnatures()
69      {
70          List result = super.getProjectnatures();
71  
72          if ( result == null )
73          {
74              result = new ArrayList();
75          }
76  
77          return result;
78      }
79  
80      public EclipseSourceDir[] getSourceDirs()
81      {
82          EclipseSourceDir[] dirs = super.getSourceDirs();
83  
84          if ( dirs == null )
85          {
86              dirs = new EclipseSourceDir[0];
87          }
88  
89          return dirs;
90      }
91  
92      public List getLinkedResources()
93      {
94          List result = super.getLinkedResources();
95  
96          if ( result == null )
97          {
98              result = new ArrayList();
99          }
100 
101         return result;
102     }
103 
104 }