<commit_before>package com.sharparam.sharpmemory.models;

import com.sharparam.sharpmemory.State;
import com.sharparam.sharpmemory.tests.helpers.JavaFXTester;
import com.sharparam.sharpmemory.tests.rules.JavaFXThreadingRule;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

/**
 * Tests for {@link com.sharparam.sharpmemory.models.BrickModel}
 *
 * Created on 2014-03-27.
 *
 * @author Sharparam
 */
@RunWith(JUnit4.class)
public class BrickModelTest extends JavaFXTester {
    @Rule
    private JavaFXThreadingRule javaFXThreadingRule = new JavaFXThreadingRule();

    private BrickModel downBrick;
    private BrickModel upBrick;
    private BrickModel clearedBrick;
    private BrickModel invalidBrick;

    @Before
    public void setUp() {
        downBrick = new BrickModel(State.FACE_DOWN);
        upBrick = new BrickModel(State.FACE_UP);<commit_msg>Use rule instead of inheriting from JavaFX hack class.<commit_after>package com.sharparam.sharpmemory.models;

import com.sharparam.sharpmemory.State;
import com.sharparam.sharpmemory.tests.rules.JavaFXThreadingRule;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

/**
 * Tests for {@link com.sharparam.sharpmemory.models.BrickModel}
 *
 * Created on 2014-03-27.
 *
 * @author Sharparam
 */
@RunWith(JUnit4.class)
public class BrickModelTest /*extends JavaFXTester*/ {
    @Rule
    public JavaFXThreadingRule javaFXThreadingRule = new JavaFXThreadingRule();

    private BrickModel downBrick;
    private BrickModel upBrick;
    private BrickModel clearedBrick;
    private BrickModel invalidBrick;

    @Before
    public void setUp() {
        downBrick = new BrickModel(State.FACE_DOWN);
        upBrick = new BrickModel(State.FACE_UP);
{'fraction_non_alphanumeric': 0.09627479438800193, 'fraction_numerical': 0.009675858732462506, 'mean_word_length': 4.544235924932976, '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': '4264456', 'n_tokens_mistral': 681, 'n_tokens_neox': 689, 'n_words': 139}