File tree 3 files changed +12
-10
lines changed
src/test/java/io/jenkins/plugins
3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 1
- package io .jenkins .plugins .util ;
2
-
3
- import java .net .URL ;
1
+ package io .jenkins .plugins .archunit ;
4
2
5
3
import com .tngtech .archunit .core .importer .ImportOption .DoNotIncludeTests ;
6
4
import com .tngtech .archunit .junit .AnalyzeClasses ;
7
5
import com .tngtech .archunit .junit .ArchTest ;
8
6
import com .tngtech .archunit .lang .ArchRule ;
9
7
8
+ import java .net .URL ;
9
+
10
10
import static com .tngtech .archunit .lang .syntax .ArchRuleDefinition .*;
11
11
import static com .tngtech .archunit .library .plantuml .rules .PlantUmlArchCondition .Configuration .*;
12
12
import static com .tngtech .archunit .library .plantuml .rules .PlantUmlArchCondition .*;
Original file line number Diff line number Diff line change 1
- package io .jenkins .plugins .util ;
1
+ package io .jenkins .plugins .archunit ;
2
2
3
3
import com .tngtech .archunit .junit .AnalyzeClasses ;
4
4
import com .tngtech .archunit .junit .ArchTest ;
5
5
import com .tngtech .archunit .lang .ArchRule ;
6
6
7
7
import edu .hm .hafner .util .ArchitectureRules ;
8
8
9
+ import io .jenkins .plugins .util .PluginArchitectureRules ;
10
+
9
11
/**
10
12
* Checks several architecture rules for the plugin utilities.
11
13
*
Original file line number Diff line number Diff line change 1
1
package io .jenkins .plugins .util ;
2
2
3
- import java .util .Arrays ;
4
- import java .util .List ;
5
- import java .util .stream .Collectors ;
6
-
7
3
import com .tngtech .archunit .base .DescribedPredicate ;
8
4
import com .tngtech .archunit .core .domain .JavaClass ;
9
5
import com .tngtech .archunit .core .domain .JavaMethod ;
13
9
import com .tngtech .archunit .lang .ConditionEvents ;
14
10
import com .tngtech .archunit .lang .SimpleConditionEvent ;
15
11
12
+ import java .util .Arrays ;
13
+ import java .util .List ;
14
+ import java .util .stream .Collectors ;
15
+
16
16
import org .kohsuke .stapler .DataBoundConstructor ;
17
17
import org .kohsuke .stapler .DataBoundSetter ;
18
18
import org .kohsuke .stapler .bind .JavaScriptMethod ;
@@ -47,8 +47,8 @@ public final class PluginArchitectureRules {
47
47
48
48
/**
49
49
* Direct calls to {@link Jenkins#getInstance()} or {@link Jenkins#getInstanceOrNull()}} are prohibited since these
50
- * methods require a running Jenkins instance. Otherwise the accessor of this method cannot be unit tested. Create a
51
- * new {@link JenkinsFacade} object to access the running Jenkins instance. If your required method is missing you
50
+ * methods require a running Jenkins instance. Otherwise, the accessor of this method cannot be unit tested. Create a
51
+ * new {@link JenkinsFacade} object to access the running Jenkins instance. If your required method is missing, you
52
52
* need to add it to {@link JenkinsFacade}.
53
53
*/
54
54
public static final ArchRule NO_JENKINS_INSTANCE_CALL =
You can’t perform that action at this time.
0 commit comments