File tree Expand file tree Collapse file tree 12 files changed +179
-132
lines changed
src/test/java/io/kubernetes/client Expand file tree Collapse file tree 12 files changed +179
-132
lines changed Original file line number Diff line number Diff line change 59
59
</dependency >
60
60
<dependency >
61
61
<groupId >com.github.stefanbirkner</groupId >
62
- <artifactId >system-rules </artifactId >
62
+ <artifactId >system-lambda </artifactId >
63
63
<scope >test</scope >
64
64
</dependency >
65
65
<dependency >
Original file line number Diff line number Diff line change 262
262
</dependency >
263
263
<dependency >
264
264
<groupId >com.github.stefanbirkner</groupId >
265
- <artifactId >system-rules </artifactId >
266
- <version >1.19 .0</version >
265
+ <artifactId >system-lambda </artifactId >
266
+ <version >1.2 .0</version >
267
267
<scope >test</scope >
268
268
</dependency >
269
269
<dependency >
Original file line number Diff line number Diff line change 97
97
</dependency >
98
98
<dependency >
99
99
<groupId >com.github.stefanbirkner</groupId >
100
- <artifactId >system-rules </artifactId >
100
+ <artifactId >system-lambda </artifactId >
101
101
<scope >test</scope >
102
102
</dependency >
103
103
<dependency >
Original file line number Diff line number Diff line change 24
24
import java .util .List ;
25
25
import java .util .Map ;
26
26
import java .util .function .Function ;
27
- import org .junit .Rule ;
28
27
import org .junit .Test ;
29
- import org .junit .contrib .java .lang .system .EnvironmentVariables ;
30
28
import org .junit .runner .RunWith ;
31
29
import org .junit .runners .Parameterized ;
32
30
33
31
@ RunWith (Parameterized .class )
34
32
public class CacheTest {
35
33
36
- @ Rule public final EnvironmentVariables environmentVariables = new EnvironmentVariables ();
37
-
38
34
private static String mockIndexName = "mock" ;
39
35
40
36
private static List <String > mockIndexFunc (Object obj ) {
Original file line number Diff line number Diff line change 24
24
import java .util .Arrays ;
25
25
import java .util .concurrent .atomic .AtomicBoolean ;
26
26
import java .util .concurrent .atomic .AtomicInteger ;
27
- import org .junit .Rule ;
28
27
import org .junit .Test ;
29
- import org .junit .contrib .java .lang .system .EnvironmentVariables ;
30
28
31
29
public class ControllerTest {
32
30
33
- @ Rule public final EnvironmentVariables environmentVariables = new EnvironmentVariables ();
34
-
35
31
@ Test
36
32
public void testControllerProcessDeltas () throws InterruptedException {
37
33
Original file line number Diff line number Diff line change 23
23
import java .util .Deque ;
24
24
import java .util .LinkedList ;
25
25
import org .apache .commons .lang3 .tuple .MutablePair ;
26
- import org .junit .Rule ;
27
26
import org .junit .Test ;
28
- import org .junit .contrib .java .lang .system .EnvironmentVariables ;
29
27
30
28
public class DeltaFIFOTest {
31
-
32
- @ Rule public final EnvironmentVariables environmentVariables = new EnvironmentVariables ();
33
-
34
29
@ Test
35
30
public void testDeltaFIFOBasic () throws InterruptedException {
36
31
Deque <MutablePair <DeltaFIFO .DeltaType , KubernetesObject >> receivingDeltas = new LinkedList <>();
Original file line number Diff line number Diff line change 18
18
import io .kubernetes .client .openapi .models .V1Pod ;
19
19
import java .util .Arrays ;
20
20
import java .util .List ;
21
- import org .junit .Rule ;
22
21
import org .junit .Test ;
23
- import org .junit .contrib .java .lang .system .EnvironmentVariables ;
24
22
25
23
public class ListerTest {
26
- @ Rule public final EnvironmentVariables environmentVariables = new EnvironmentVariables ();
27
-
28
24
@ Test
29
25
public void testListerBasic () {
30
26
Cache <V1Pod > podCache = new Cache <>();
Original file line number Diff line number Diff line change 17
17
import io .kubernetes .client .informer .ResourceEventHandler ;
18
18
import io .kubernetes .client .openapi .models .V1ObjectMeta ;
19
19
import io .kubernetes .client .openapi .models .V1Pod ;
20
- import org .junit .Rule ;
21
20
import org .junit .Test ;
22
- import org .junit .contrib .java .lang .system .EnvironmentVariables ;
23
21
24
22
public class ProcessorListenerTest {
25
23
26
- @ Rule public final EnvironmentVariables environmentVariables = new EnvironmentVariables ();
27
-
28
24
private static boolean addNotificationReceived ;
29
25
private static boolean updateNotificationReceived ;
30
26
private static boolean deleteNotificationReceived ;
Original file line number Diff line number Diff line change 34
34
import java .util .concurrent .atomic .AtomicReference ;
35
35
import org .awaitility .Awaitility ;
36
36
import org .hamcrest .core .IsEqual ;
37
- import org .junit .Rule ;
38
37
import org .junit .Test ;
39
- import org .junit .contrib .java .lang .system .EnvironmentVariables ;
40
38
import org .junit .runner .RunWith ;
41
39
import org .mockito .Mock ;
42
40
import org .mockito .junit .MockitoJUnitRunner ;
43
41
44
42
@ RunWith (MockitoJUnitRunner .class )
45
43
public class ReflectorRunnableTest {
46
44
47
- @ Rule public final EnvironmentVariables environmentVariables = new EnvironmentVariables ();
48
-
49
45
@ Mock private DeltaFIFO deltaFIFO ;
50
46
51
47
@ Mock private ListerWatcher <V1Pod , V1PodList > listerWatcher ;
Original file line number Diff line number Diff line change 20
20
import io .kubernetes .client .openapi .models .V1Pod ;
21
21
import java .time .Duration ;
22
22
import java .util .concurrent .Executors ;
23
- import org .junit .Rule ;
24
23
import org .junit .Test ;
25
- import org .junit .contrib .java .lang .system .EnvironmentVariables ;
26
24
27
25
public class SharedProcessorTest {
28
26
29
- @ Rule public final EnvironmentVariables environmentVariables = new EnvironmentVariables ();
30
-
31
27
@ Test
32
28
public void testListenerAddition () throws InterruptedException {
33
29
You can’t perform that action at this time.
0 commit comments