<commit_before>package de.fau.amos.virtualledger.android.api.savings;

import org.junit.Before;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
import io.reactivex.Observable;

/**
 * Created by Simon on 01.07.2017.
 */

public class MockedSavingsProviderTest {
    MockedSavingsProvider mockedSavingsProvider;

    @Before
    public void setUp() {
        mockedSavingsProvider= new MockedSavingsProvider();
    }

    @Test
    public void getSavingAccountsTest() {
        Observable testObservable = mockedSavingsProvider.getSavingAccounts();
        assertThat(testObservable).isNotNull();
    }
}<commit_msg>added new test for adding saving accounts<commit_after>package de.fau.amos.virtualledger.android.api.savings;

import org.junit.Before;
import org.junit.Test;

import java.util.Date;

import static org.assertj.core.api.Assertions.assertThat;

import de.fau.amos.virtualledger.android.model.SavingsAccount;
import io.reactivex.Observable;

/**
 * Created by Simon on 01.07.2017.
 */

public class MockedSavingsProviderTest {
    MockedSavingsProvider mockedSavingsProvider;

    @Before
    public void setUp() {
        mockedSavingsProvider= new MockedSavingsProvider();
    }

    @Test
    public void getSavingAccountsTest() {
        Observable testObservable = mockedSavingsProvider.getSavingAccounts();
        assertThat(testObservable).isNotNull();
    }

    @Test
    public void addSavingAccount() {
        Observable testObservable = mockedSavingsProvider.addSavingAccount(new SavingsAccount("1","name", 0, 0, new Date(12312)));
        assertThat(testObservable).isNotNull();
    }

}
{'fraction_non_alphanumeric': 0.09836065573770492, 'fraction_numerical': 0.014571948998178506, 'mean_word_length': 4.0552147239263805, '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': '5111766', 'n_tokens_mistral': 536, 'n_tokens_neox': 499, 'n_words': 95}