<commit_before>package no.finn.unleash.repository;

import no.finn.unleash.Toggle;
import org.junit.Test;


import java.net.URI;

import static org.junit.Assert.*;

public class FeatureToggleRepositoryTest {
    private ToggleRepository toggleRepository;



    @Test
    public void readDisabledToggleFromRepository(){
        toggleRepository = new FeatureToggleRepository(URI.create("http://localhost:4242/features"));
        Toggle unknownFeature = toggleRepository.getToggle("unknownFeature");
        assertNull("should be null", unknownFeature);

    }




}<commit_msg>Refactoring FeatureToggleRepositoryTest<commit_after>package no.finn.unleash.repository;

import java.net.URI;
import org.junit.Test;

import static org.junit.Assert.assertNull;


public class FeatureToggleRepositoryTest {
    private ToggleRepository toggleRepository;

    @Test
    public void noBackupFileAndNoRepositoryAvailable(){
        toggleRepository = new FeatureToggleRepository(URI.create("http://localhost:4242/features"));
        assertNull("should be null", toggleRepository.getToggle("unknownFeature"));
    }

}
{'fraction_non_alphanumeric': 0.09648331830477908, 'fraction_numerical': 0.007213706041478809, 'mean_word_length': 4.842105263157895, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1090867', 'n_tokens_mistral': 302, 'n_tokens_neox': 286, 'n_words': 58}