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 5959 </dependency >
6060 <dependency >
6161 <groupId >com.github.stefanbirkner</groupId >
62- <artifactId >system-rules </artifactId >
62+ <artifactId >system-lambda </artifactId >
6363 <scope >test</scope >
6464 </dependency >
6565 <dependency >
Original file line number Diff line number Diff line change 262262 </dependency >
263263 <dependency >
264264 <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 >
267267 <scope >test</scope >
268268 </dependency >
269269 <dependency >
Original file line number Diff line number Diff line change 9797 </dependency >
9898 <dependency >
9999 <groupId >com.github.stefanbirkner</groupId >
100- <artifactId >system-rules </artifactId >
100+ <artifactId >system-lambda </artifactId >
101101 <scope >test</scope >
102102 </dependency >
103103 <dependency >
Original file line number Diff line number Diff line change 2424import java .util .List ;
2525import java .util .Map ;
2626import java .util .function .Function ;
27- import org .junit .Rule ;
2827import org .junit .Test ;
29- import org .junit .contrib .java .lang .system .EnvironmentVariables ;
3028import org .junit .runner .RunWith ;
3129import org .junit .runners .Parameterized ;
3230
3331@ RunWith (Parameterized .class )
3432public class CacheTest {
3533
36- @ Rule public final EnvironmentVariables environmentVariables = new EnvironmentVariables ();
37-
3834 private static String mockIndexName = "mock" ;
3935
4036 private static List <String > mockIndexFunc (Object obj ) {
Original file line number Diff line number Diff line change 2424import java .util .Arrays ;
2525import java .util .concurrent .atomic .AtomicBoolean ;
2626import java .util .concurrent .atomic .AtomicInteger ;
27- import org .junit .Rule ;
2827import org .junit .Test ;
29- import org .junit .contrib .java .lang .system .EnvironmentVariables ;
3028
3129public class ControllerTest {
3230
33- @ Rule public final EnvironmentVariables environmentVariables = new EnvironmentVariables ();
34-
3531 @ Test
3632 public void testControllerProcessDeltas () throws InterruptedException {
3733
Original file line number Diff line number Diff line change 2323import java .util .Deque ;
2424import java .util .LinkedList ;
2525import org .apache .commons .lang3 .tuple .MutablePair ;
26- import org .junit .Rule ;
2726import org .junit .Test ;
28- import org .junit .contrib .java .lang .system .EnvironmentVariables ;
2927
3028public class DeltaFIFOTest {
31-
32- @ Rule public final EnvironmentVariables environmentVariables = new EnvironmentVariables ();
33-
3429 @ Test
3530 public void testDeltaFIFOBasic () throws InterruptedException {
3631 Deque <MutablePair <DeltaFIFO .DeltaType , KubernetesObject >> receivingDeltas = new LinkedList <>();
Original file line number Diff line number Diff line change 1818import io .kubernetes .client .openapi .models .V1Pod ;
1919import java .util .Arrays ;
2020import java .util .List ;
21- import org .junit .Rule ;
2221import org .junit .Test ;
23- import org .junit .contrib .java .lang .system .EnvironmentVariables ;
2422
2523public class ListerTest {
26- @ Rule public final EnvironmentVariables environmentVariables = new EnvironmentVariables ();
27-
2824 @ Test
2925 public void testListerBasic () {
3026 Cache <V1Pod > podCache = new Cache <>();
Original file line number Diff line number Diff line change 1717import io .kubernetes .client .informer .ResourceEventHandler ;
1818import io .kubernetes .client .openapi .models .V1ObjectMeta ;
1919import io .kubernetes .client .openapi .models .V1Pod ;
20- import org .junit .Rule ;
2120import org .junit .Test ;
22- import org .junit .contrib .java .lang .system .EnvironmentVariables ;
2321
2422public class ProcessorListenerTest {
2523
26- @ Rule public final EnvironmentVariables environmentVariables = new EnvironmentVariables ();
27-
2824 private static boolean addNotificationReceived ;
2925 private static boolean updateNotificationReceived ;
3026 private static boolean deleteNotificationReceived ;
Original file line number Diff line number Diff line change 3434import java .util .concurrent .atomic .AtomicReference ;
3535import org .awaitility .Awaitility ;
3636import org .hamcrest .core .IsEqual ;
37- import org .junit .Rule ;
3837import org .junit .Test ;
39- import org .junit .contrib .java .lang .system .EnvironmentVariables ;
4038import org .junit .runner .RunWith ;
4139import org .mockito .Mock ;
4240import org .mockito .junit .MockitoJUnitRunner ;
4341
4442@ RunWith (MockitoJUnitRunner .class )
4543public class ReflectorRunnableTest {
4644
47- @ Rule public final EnvironmentVariables environmentVariables = new EnvironmentVariables ();
48-
4945 @ Mock private DeltaFIFO deltaFIFO ;
5046
5147 @ Mock private ListerWatcher <V1Pod , V1PodList > listerWatcher ;
Original file line number Diff line number Diff line change 2020import io .kubernetes .client .openapi .models .V1Pod ;
2121import java .time .Duration ;
2222import java .util .concurrent .Executors ;
23- import org .junit .Rule ;
2423import org .junit .Test ;
25- import org .junit .contrib .java .lang .system .EnvironmentVariables ;
2624
2725public class SharedProcessorTest {
2826
29- @ Rule public final EnvironmentVariables environmentVariables = new EnvironmentVariables ();
30-
3127 @ Test
3228 public void testListenerAddition () throws InterruptedException {
3329
You can’t perform that action at this time.
0 commit comments