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.it;
20  
21  /**
22   * Unit Tests for MyEclipse plugin
23   * 
24   * @author <a href="mailto:olivier.jacob@gmail.com">Olivier Jacob</a>
25   */
26  public class MyEclipsePluginIT
27      extends AbstractEclipsePluginIT
28  {
29      /**
30       * Web project, no spring/struts/hibernate capability, J2EE 1.3
31       * 
32       * @throws Exception
33       */
34      public void testProject01()
35          throws Exception
36      {
37          testMyEclipseProject( "project-myeclipse-01" );
38      }
39  
40      /**
41       * Web project, no spring/struts/hibernate capability, J2EE 1.4
42       * 
43       * @throws Exception
44       */
45      public void testProject02()
46          throws Exception
47      {
48          testMyEclipseProject( "project-myeclipse-02" );
49      }
50  
51      /**
52       * Simple project with Spring capability
53       * 
54       * @throws Exception
55       */
56      public void testProject03()
57          throws Exception
58      {
59          testMyEclipseProject( "project-myeclipse-03" );
60      }
61  
62      /**
63       * Simple project with Spring and Hibernate capabilities
64       * 
65       * @throws Exception
66       */
67      public void testProject04()
68          throws Exception
69      {
70          testMyEclipseProject( "project-myeclipse-04" );
71      }
72  
73      /**
74       * Simple project with additionalConfig
75       * 
76       * @throws Exception
77       */
78      public void testProject05()
79          throws Exception
80      {
81          testMyEclipseProject( "project-myeclipse-05" );
82      }
83  
84      /**
85       * Simple project with with spring configuration that points at non-existent directory
86       * 
87       * @throws Exception
88       */
89      public void testMyEclipseProject06MECLIPSE427()
90          throws Exception
91      {
92          testMyEclipseProject( "project-myeclipse-06-MECLIPSE-427" );
93      }
94  
95      /**
96       * Verifies spring files created with sub-projects (modules) module-1 should have spring bean files in the
97       * .springBeans file. module-2 should not have spring bean files in the .springBeans file.
98       * 
99       * @throws Exception
100      */
101     public void testProject07MECLIPSE445()
102         throws Exception
103     {
104         testMyEclipseProject( "project-myeclipse-07-MECLIPSE-445" );
105     }
106 
107     public void testMyEclipseProject( String project )
108         throws Exception
109     {
110         testProject( project, null, "myeclipse-clean", "myeclipse" );
111     }
112 
113 }