<commit_before>import com.crap.sms.domain.model.RAN;
import com.crap.sms.domain.model.Subscriber;
import com.crap.sms.domain.model.Subscription;
import com.crap.sms.domain.model.Terminal;
import com.crap.sms.domain.repository.SubscriberRepository;
import junit.framework.TestCase;

import java.util.HashSet;
import java.util.Set;

/**
 * Created by batkefe on 10.03.2017.
 */
public class SubscriberRepositoryTest extends TestCase {

    public void testSave() {
        Set<RAN> ran = new HashSet<RAN>();
        ran.add(RAN.G2);
        ran.add(RAN.G3);
        Terminal terminal = new Terminal(ran);
        Subscription subscription = new Subscription(100,100,2,20);
        Subscriber subscriber = new Subscriber("123456789012345",terminal,subscription,"Test","Tester");
        SubscriberRepository subscriberRepository = SubscriberRepository.getInstance();
        subscriberRepository.save(subscriber);
        Subscriber subscriber2 = subscriberRepository.getByImsi("123456789012345");
        assertTrue(subscriber.equals(subscriber2));
    }
}<commit_msg>added test for value change<commit_after>import com.crap.sms.domain.model.RAN;
import com.crap.sms.domain.model.Subscriber;
import com.crap.sms.domain.model.Subscription;
import com.crap.sms.domain.model.Terminal;
import com.crap.sms.domain.repository.SubscriberRepository;
import junit.framework.TestCase;

import java.util.HashSet;
import java.util.Set;

/**
 * Created by batkefe on 10.03.2017.
 */
public class SubscriberRepositoryTest extends TestCase {

    public void testSave() {
        Set<RAN> ran = new HashSet<RAN>();
        ran.add(RAN.G2);
        ran.add(RAN.G3);
        Terminal terminal = new Terminal(ran);
        Subscription subscription = new Subscription(100,100,2,20);
        Subscriber subscriber = new Subscriber("123456789012345",terminal,subscription,"Test","Tester");
        SubscriberRepository subscriberRepository = SubscriberRepository.getInstance();
        subscriberRepository.save(subscriber);
        Subscriber subscriber2 = subscriberRepository.getByImsi("123456789012345");
        assertTrue(subscriber.equals(subscriber2));
    }

    public void testChangeValue() {
        Set<RAN> ran = new HashSet<RAN>();
        ran.add(RAN.G2);
        ran.add(RAN.G3);
        Terminal terminal = new Terminal(ran);
        Subscription subscription = new Subscription(100,100,2,20);
        Subscriber subscriber = new Subscriber("123456789012346",terminal,subscription,"Test","Tester");
        SubscriberRepository subscriberRepository = SubscriberRepository.getInstance();
        subscriberRepository.save(subscriber);
        subscriber.setForeName("NeuerTest");
        subscriberRepository.save(subscriber);
        Subscriber subscriber2 = subscriberRepository.getByImsi("123456789012346");
        assertTrue(subscriber2.getForeName().equals("NeuerTest"));
    }
}
{'fraction_non_alphanumeric': 0.11388888888888889, 'fraction_numerical': 0.050347222222222224, 'mean_word_length': 4.072183098591549, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4929047', 'n_tokens_mistral': 926, 'n_tokens_neox': 832, 'n_words': 145}