package net.tjololo.openshift.havoc.connector.kubernetes;

/**
 * Created by veg on 19.12.2016.
 */
public class KubernetesDiscoveryTest {
    private KubernetesDiscovery kubernetesDiscovery;


}

@@ -52,16 +52,372 @@
 netes;%0A%0A
+import org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0Aimport org.springframework.web.client.RestTemplate;%0A%0Aimport static org.hamcrest.CoreMatchers.not;%0Aimport static org.hamcrest.CoreMatchers.nullValue;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0A%0A
 /**%0A * C
@@ -449,16 +449,51 @@
 16.%0A */%0A
+@RunWith(MockitoJUnitRunner.class)%0A
 public c
@@ -576,12 +576,384 @@
 covery;%0A
-%0A
+    @Mock%0A    private RestTemplate restTemplate;%0A    private static final String TOKEN=%2222Token22%22;%0A%0A    @Before%0A    public void setUp() %7B%0A        kubernetesDiscovery = new KubernetesDiscovery(restTemplate, TOKEN);%0A    %7D%0A%0A    @Test%0A    public void check_that_kubernetesDiscovery_not_null() throws Exception %7B%0A        assertThat(kubernetesDiscovery, not(nullValue()));%0A    %7D
 %0A%7D%0A

Improve code quality. Implementet simple test