// Path: app/src/main/java/hu/supercluster/gameoflife/game/cell/Cell.java
// public interface Cell {
//     public static final int STATE_ALIVE = 1;
//     public static final int STATE_DEAD = 0;
// 
//     void reset(int state);
//     long getId();
//     int getY();
//     int getX();
//     void setState(int state);
//     int getState();
//     boolean isAlive();
//     boolean isDead();
//     void onNeighborStateChange(int newState);
//     void setOverseer(Overseer overseer);
// }
// 
// Path: app/src/main/java/hu/supercluster/gameoflife/game/cell/SimpleCellFactory.java
// public class SimpleCellFactory implements CellFactory<SimpleCell> {
//     @Override
//     public SimpleCell create(int x, int y) {
//         return new SimpleCell(x, y, SimpleCell.STATE_DEAD);
//     }
// 
//     @Override
//     public int[] flatten(SimpleCell cell) {
//         final int[] flattened = new int[4];
//         flattened[0] = cell.x;
//         flattened[1] = cell.y;
//         flattened[2] = cell.state;
//         flattened[3] = cell.neighborCount;
// 
//         return flattened;
//     }
// 
//     @Override
//     public SimpleCell inflate(int[] flattened) {
//         final SimpleCell cell = new SimpleCell(
//                 flattened[0],
//                 flattened[1],
//                 flattened[2]
//         );
// 
//         cell.neighborCount = flattened[3];
// 
//         return cell;
//     }
// }
// 
// Path: app/src/test/java/hu/supercluster/gameoflife/test/RobolectricTest.java
// @RunWith(RobolectricGradleTestRunner.class)
// @Config(
//         constants = BuildConfig.class,
//         sdk = Build.VERSION_CODES.JELLY_BEAN,
//         packageName = "hu.supercluster.gameoflife"
// )
// abstract public class RobolectricTest {
// 
// }


import org.junit.Before;
import org.junit.Test;
import hu.supercluster.gameoflife.game.cell.Cell;
import hu.supercluster.gameoflife.game.cell.SimpleCellFactory;
import hu.supercluster.gameoflife.test.RobolectricTest;
import static org.fest.assertions.api.Assertions.assertThat;
package hu.supercluster.gameoflife.game.grid;




public class EndlessGridHandlerTest extends RobolectricTest {
    EndlessGridHandler gridHandler;
// Path: app/src/main/java/hu/supercluster/gameoflife/game/cell/Cell.java
// public interface Cell {
//     public static final int STATE_ALIVE = 1;
//     public static final int STATE_DEAD = 0;
// 
//     void reset(int state);
//     long getId();
//     int getY();
//     int getX();
//     void setState(int state);
//     int getState();
//     boolean isAlive();
//     boolean isDead();
//     void onNeighborStateChange(int newState);
//     void setOverseer(Overseer overseer);
// }
// 
// Path: app/src/main/java/hu/supercluster/gameoflife/game/cell/SimpleCellFactory.java
// public class SimpleCellFactory implements CellFactory<SimpleCell> {
//     @Override
//     public SimpleCell create(int x, int y) {
//         return new SimpleCell(x, y, SimpleCell.STATE_DEAD);
//     }
// 
//     @Override
//     public int[] flatten(SimpleCell cell) {
//         final int[] flattened = new int[4];
//         flattened[0] = cell.x;
//         flattened[1] = cell.y;
//         flattened[2] = cell.state;
//         flattened[3] = cell.neighborCount;
// 
//         return flattened;
//     }
// 
//     @Override
//     public SimpleCell inflate(int[] flattened) {
//         final SimpleCell cell = new SimpleCell(
//                 flattened[0],
//                 flattened[1],
//                 flattened[2]
//         );
// 
//         cell.neighborCount = flattened[3];
// 
//         return cell;
//     }
// }
// 
// Path: app/src/test/java/hu/supercluster/gameoflife/test/RobolectricTest.java
// @RunWith(RobolectricGradleTestRunner.class)
// @Config(
//         constants = BuildConfig.class,
//         sdk = Build.VERSION_CODES.JELLY_BEAN,
//         packageName = "hu.supercluster.gameoflife"
// )
// abstract public class RobolectricTest {
// 
// }


// Path: app/src/test/java/hu/supercluster/gameoflife/game/grid/EndlessGridHandlerTest.java
import org.junit.Before;
import org.junit.Test;
import hu.supercluster.gameoflife.game.cell.Cell;
import hu.supercluster.gameoflife.game.cell.SimpleCellFactory;
import hu.supercluster.gameoflife.test.RobolectricTest;
import static org.fest.assertions.api.Assertions.assertThat;

package hu.supercluster.gameoflife.game.grid;




public class EndlessGridHandlerTest extends RobolectricTest {
    EndlessGridHandler gridHandler;
    private SimpleCellFactory cellFactory;