<commit_before>package net.tjololo.openshift.havoc.connector.kubernetes;

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


}<commit_msg>Improve code quality. Implementet simple test<commit_after>package net.tjololo.openshift.havoc.connector.kubernetes;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.web.client.RestTemplate;

import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;

/**
 * Created by veg on 19.12.2016.
 */
@RunWith(MockitoJUnitRunner.class)
public class KubernetesDiscoveryTest {
    private KubernetesDiscovery kubernetesDiscovery;
    @Mock
    private RestTemplate restTemplate;
    private static final String TOKEN="<PASSWORD>";

    @Before
    public void setUp() {
        kubernetesDiscovery = new KubernetesDiscovery(restTemplate, TOKEN);
    }

    @Test
    public void check_that_kubernetesDiscovery_not_null() throws Exception {
        assertThat(kubernetesDiscovery, not(nullValue()));
    }
}
{'fraction_non_alphanumeric': 0.09032258064516129, 'fraction_numerical': 0.012903225806451613, 'mean_word_length': 4.881516587677726, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6992198', 'n_tokens_mistral': 392, 'n_tokens_neox': 362, 'n_words': 78}