1 package org.apache.maven.surefire.booter;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import javax.annotation.Nonnull;
23
24
25
26
27
28 public class ModularClasspathConfiguration extends AbstractPathConfiguration
29 {
30 private final ModularClasspath modularClasspath;
31 private final Classpath testClasspathUrls;
32
33 public ModularClasspathConfiguration( @Nonnull ModularClasspath modularClasspath,
34 @Nonnull Classpath testClasspathUrls,
35 @Nonnull Classpath surefireClasspathUrls,
36 boolean enableAssertions,
37 boolean childDelegation )
38 {
39 super( surefireClasspathUrls, enableAssertions, childDelegation );
40 this.modularClasspath = modularClasspath;
41 this.testClasspathUrls = testClasspathUrls;
42 }
43
44 @Override
45 public Classpath getTestClasspath()
46 {
47 return testClasspathUrls;
48 }
49
50 @Override
51 public final boolean isModularPathConfig()
52 {
53 return true;
54 }
55
56 @Override
57 public final boolean isClassPathConfig()
58 {
59 return !isModularPathConfig();
60 }
61
62 public ModularClasspath getModularClasspath()
63 {
64 return modularClasspath;
65 }
66 }