View Javadoc
1   package org.apache.maven.plugin.surefire;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "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 java.io.File;
23  import java.util.List;
24  import org.apache.maven.artifact.repository.ArtifactRepository;
25  
26  /**
27   * This interface contains all the common parameters that have different implementations in Surefire vs IntegrationTest
28   *
29   * @author Stephen Connolly
30   */
31  public interface SurefireExecutionParameters
32  {
33      boolean isSkipTests();
34  
35      void setSkipTests( boolean skipTests );
36  
37      boolean isSkipExec();
38  
39      void setSkipExec( boolean skipExec );
40  
41      boolean isSkip();
42  
43      void setSkip( boolean skip );
44  
45      File getBasedir();
46  
47      void setBasedir( File basedir );
48  
49      File getTestClassesDirectory();
50  
51      void setTestClassesDirectory( File testClassesDirectory );
52  
53      File getClassesDirectory();
54  
55      void setClassesDirectory( File classesDirectory );
56  
57      File getReportsDirectory();
58  
59      void setReportsDirectory( File reportsDirectory );
60  
61      File getTestSourceDirectory();
62  
63      void setTestSourceDirectory( File testSourceDirectory );
64  
65      String getTest();
66  
67      void setTest( String test );
68  
69      List<String> getIncludes();
70  
71      void setIncludes( List<String> includes );
72  
73      List<String> getExcludes();
74  
75      void setExcludes( List<String> excludes );
76  
77      ArtifactRepository getLocalRepository();
78  
79      void setLocalRepository( ArtifactRepository localRepository );
80  
81      boolean isPrintSummary();
82  
83      void setPrintSummary( boolean printSummary );
84  
85      String getReportFormat();
86  
87      void setReportFormat( String reportFormat );
88  
89      boolean isUseFile();
90  
91      void setUseFile( boolean useFile );
92  
93      String getDebugForkedProcess();
94  
95      void setDebugForkedProcess( String debugForkedProcess );
96  
97      int getForkedProcessTimeoutInSeconds();
98  
99      void setForkedProcessTimeoutInSeconds( int forkedProcessTimeoutInSeconds );
100 
101     int getForkedProcessExitTimeoutInSeconds();
102 
103     void setForkedProcessExitTimeoutInSeconds( int forkedProcessTerminationTimeoutInSeconds );
104 
105     double getParallelTestsTimeoutInSeconds();
106 
107     void setParallelTestsTimeoutInSeconds( double parallelTestsTimeoutInSeconds );
108 
109     double getParallelTestsTimeoutForcedInSeconds();
110 
111     void setParallelTestsTimeoutForcedInSeconds( double parallelTestsTimeoutForcedInSeconds );
112 
113     boolean isUseSystemClassLoader();
114 
115     void setUseSystemClassLoader( boolean useSystemClassLoader );
116 
117     boolean isUseManifestOnlyJar();
118 
119     void setUseManifestOnlyJar( boolean useManifestOnlyJar );
120 
121     String getEncoding();
122 
123     void setEncoding( String encoding );
124 
125     Boolean getFailIfNoSpecifiedTests();
126 
127     void setFailIfNoSpecifiedTests( boolean failIfNoSpecifiedTests );
128 
129     int getSkipAfterFailureCount();
130 
131     String getShutdown();
132 }