<commit_before>package jp.pycon.pyconjp2016app.Feature;

import org.junit.Test;
import org.junit.experimental.runners.Enclosed;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

import jp.pycon.pyconjp2016app.Feature.About.AboutFragment;
import jp.pycon.pyconjp2016app.Feature.Access.AccessFragment;
import jp.pycon.pyconjp2016app.Feature.Talks.List.BookmarkFragment;
import jp.pycon.pyconjp2016app.Feature.Talks.List.TalksFragment;
import jp.pycon.pyconjp2016app.R;

import static org.hamcrest.Matchers.is;
import static org.hamcrest.MatcherAssert.assertThat;

/**
 * Created by rhoboro on 5/1/16.
 */
@RunWith(Enclosed.class)
public class FeatureTest {

    @RunWith(JUnit4.class)
    public static class forNameTest {
        @Test
        public void Talks画面のgetMenuID() throws Exception {
            Feature feature = Feature.forName(new TalksFragment());
            int expected = R.id.nav_talks;
            int actual = feature.getMenuId();
            assertThat(expected, is(actual));
        }

        @Test
        public void Talks画面のgetTitleResId() throws Exception {
            Feature feature = Feature.forName(new TalksFragment());
            int expected = R.string.nav_talks;
            int actual = feature.getTitleResId();
            assertThat(expected, is(actual));
        }

        @Test
        public void MyTalks画面のgetMenuID() throws Exception {
            Feature feature = Feature.forName(new BookmarkFragment());
            int expected = R.id.nav_my_talks;
            int actual = feature.getMenuId();
            assertThat(expected, is(actual));
        }

        @Test
        public void MyTalks画面のgetTitleResId() throws Exception {
            Feature feature = Feature.forName(new BookmarkFragment());
            int expected = R.string.nav_my_talks;
            int actual = feature.getTitleResId();
            assertThat(expected, is(actual));
        }

        @Test
        public void Access画面のgetMenuID() throws Exception {
            Feature feature = Feature.forName(new AccessFragment());<commit_msg>テストを修正<commit_after>package jp.pycon.pyconjp2016app.Feature;

import org.junit.Test;
import org.junit.experimental.runners.Enclosed;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

import jp.pycon.pyconjp2016app.Feature.About.AboutFragment;
import jp.pycon.pyconjp2016app.Feature.Access.AccessFragment;
import jp.pycon.pyconjp2016app.Feature.Talks.List.BookmarkFragment;
import jp.pycon.pyconjp2016app.Feature.Talks.List.TalksFragment;
import jp.pycon.pyconjp2016app.R;

import static org.hamcrest.Matchers.is;
import static org.hamcrest.MatcherAssert.assertThat;

/**
 * Created by rhoboro on 5/1/16.
 */
@RunWith(Enclosed.class)
public class FeatureTest {

    @RunWith(JUnit4.class)
    public static class forNameTest {
        @Test
        public void Talks画面のgetMenuID() throws Exception {
            Feature feature = Feature.forName(new TalksFragment());
            int expected = R.id.nav_talks;
            int actual = feature.getMenuId();
            assertThat(expected, is(actual));
        }

        @Test
        public void Talks画面のgetTitleResId() throws Exception {
            Feature feature = Feature.forName(new TalksFragment());
            int expected = R.string.nav_talks;
            int actual = feature.getTitleResId();
            assertThat(expected, is(actual));
        }

        @Test
        public void Bookmark画面のgetMenuID() throws Exception {
            Feature feature = Feature.forName(new BookmarkFragment());
            int expected = R.id.nav_bookmark;
            int actual = feature.getMenuId();
            assertThat(expected, is(actual));
        }

        @Test
        public void Bookmark画面のgetTitleResId() throws Exception {
            Feature feature = Feature.forName(new BookmarkFragment());
            int expected = R.string.nav_bookmark;
            int actual = feature.getTitleResId();
            assertThat(expected, is(actual));
        }

        @Test
        public void Access画面のgetMenuID() throws Exception {
            Feature feature = Feature.forName(new AccessFragment());
{'fraction_non_alphanumeric': 0.09578820697954273, 'fraction_numerical': 0.01444043321299639, 'mean_word_length': 2.754290876242096, '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': '2655357', 'n_tokens_mistral': 1272, 'n_tokens_neox': 1207, 'n_words': 243}