package hu.supercluster.gameoflife.game.cell;

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

import hu.supercluster.gameoflife.test.support.UnitTestSpecification;

import static org.fest.assertions.api.Assertions.assertThat;

public class SimpleCellFactoryTest extends UnitTestSpecification {
    SimpleCellFactory factory;

    @Before
    public void setup() {
        factory = new SimpleCellFactory();
    }

    @Test
    public void testCreate() {
        SimpleCell cell = factory.create(0, 0);
        assertThat(cell.isDead()).isTrue();
    }
}

@@ -440,21 +440,218 @@
 id testC
-reate
+ellIsOfCorrectClass() %7B%0A        Cell cell = factory.create(0, 0);%0A        assertThat(cell.getClass().equals(SimpleCell.class)).isTrue();%0A    %7D%0A%0A    @Test%0A    public void testCreatedCellsAreDeadByDefault
 () %7B%0A   

Refactor SimpleCellFactoryTest