forked from wildfly-extras/wildfly-testing-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRequireMultiModules.java
More file actions
68 lines (58 loc) · 2.24 KB
/
RequireMultiModules.java
File metadata and controls
68 lines (58 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.testing.junit;
import org.junit.jupiter.api.Test;
import org.wildfly.testing.junit.annotation.AnyOf;
import org.wildfly.testing.junit.annotation.RequiresModule;
import org.wildfly.testing.junit.annotation.RequiresModules;
/**
* @author <a href="mailto:jpekrins@ibm.com">James R. Perkins</a>
*/
@SuppressWarnings("NewClassNamingConvention")
@RequiresModule("org.wildfly.testing.junit.test.resource-root")
@RequiresModule("org.wildfly.testing.junit.test.client-api")
public class RequireMultiModules {
@Test
public void passing() {
}
@Test
@RequiresModule(value = "org.wildfly.testing.junit.test.resource-root", minVersion = "1.0.0")
@RequiresModule(value = "org.wildfly.testing.junit.test.client-api", minVersion = "1.0.0.Final")
public void passingVersion() {
}
@Test
@RequiresModule(value = "org.wildfly.testing.junit.test.resource-root", minVersion = "2.0.1")
@RequiresModule(value = "org.wildfly.testing.junit.test.client-api", minVersion = "1.0.0.Final")
public void skippedVersion() {
}
@Test
@RequiresModules({
@RequiresModule(value = "org.wildfly.testing.junit.test.resource-root", minVersion = "1.0.0"),
@RequiresModule(value = "org.wildfly.testing.junit.test.client-api", minVersion = "1.0.0.Final")
})
public void passingVersionRequiresModules() {
}
@Test
@RequiresModules({
@RequiresModule(value = "org.wildfly.testing.junit.test.resource-root", minVersion = "2.0.1"),
@RequiresModule(value = "org.wildfly.testing.junit.test.client-api", minVersion = "1.0.0.Final")
})
public void skippedVersionRequiresModules() {
}
@Test
@AnyOf({
@RequiresModule(value = "org.wildfly.testing.junit.test.invalid"),
@RequiresModule(value = "org.wildfly.testing.junit.test.client-api", minVersion = "1.0.0.Final")
})
public void passingAnyOf() {
}
@Test
@AnyOf({
@RequiresModule(value = "org.wildfly.testing.junit.test.invalid"),
@RequiresModule(value = "org.wildfly.testing.junit.test.client-api", minVersion = "20.0.0.Final")
})
public void skippedAnyOf() {
}
}