forked from docker-java/docker-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCmdIT.java
More file actions
42 lines (33 loc) · 1 KB
/
CmdIT.java
File metadata and controls
42 lines (33 loc) · 1 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
package com.github.dockerjava.cmd;
import com.github.dockerjava.junit.DockerRule;
import com.github.dockerjava.junit.category.Integration;
import org.junit.Rule;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.util.Arrays;
import static com.github.dockerjava.cmd.CmdIT.FactoryType.JERSEY;
import static com.github.dockerjava.cmd.CmdIT.FactoryType.NETTY;
/**
* @author Kanstantsin Shautsou
*/
@Category(Integration.class)
@RunWith(Parameterized.class)
public abstract class CmdIT {
public enum FactoryType {
NETTY, JERSEY
}
@Parameterized.Parameters(name = "{index}:{0}")
public static Iterable<FactoryType> data() {
return Arrays.asList(
NETTY, JERSEY
);
}
@Parameterized.Parameter
public FactoryType factoryType;
public FactoryType getFactoryType() {
return factoryType;
}
@Rule
public DockerRule dockerRule = new DockerRule( this);
}