Android Open Source - iSlide Game Board Test






From Project

Back to project page iSlide.

License

The source code is released under:

MIT License

If you think the Android project iSlide listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package edu.csun.group2.islide.engine;
// w  ww .j a  v a  2  s.  c om
import static org.junit.Assert.*;

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

public class GameBoardTest {
GameBoard b, q;
  
  
  @Before
  public void setUp() throws Exception {
    b = new GameBoard(3);
    q = new GameBoard(3);
    for(int i = 0; i < q.ary.size(); ++i)
    {
      q.ary.set(i,  (byte)i);
    }
    q.empty = 0;
    q.solution_stack.clear();    
  }

  @Test
  public void testMove() {
    fail("Not yet implemented");
  }

  @Test
  public void testGameBoardInt() {
    fail("Not yet implemented");
  }

  @Test
  public void testGameBoardGameBoard() {
    fail("Not yet implemented");
  }

  @Test
  public void testHint() {
    q.move(1);
    assertTrue("Failed to solve the board", q.hint() == 0);
  }

  @Test
  public void testSolve() {
    q.move(1);
    q.solve();
    assertTrue("Failed to solve the board", q.solved());
  }

  @Test
  public void testSolved() {
    assertTrue("Failed to solve the board", q.solved());
  }

}




Java Source Code List

edu.csun.group2.islide.CameraPreview.java
edu.csun.group2.islide.HighScore.java
edu.csun.group2.islide.MainActivity.java
edu.csun.group2.islide.MainMenuActivity.java
edu.csun.group2.islide.PhotoHandler.java
edu.csun.group2.islide.PlayMenu.java
edu.csun.group2.islide.SelectImageActivity.java
edu.csun.group2.islide.SettingsMenu.java
edu.csun.group2.islide.TakePictureActivity.java
edu.csun.group2.islide.UtilityInfo.java
edu.csun.group2.islide.Utility.java
edu.csun.group2.islide.engine.BoardTest.java
edu.csun.group2.islide.engine.Board.java
edu.csun.group2.islide.engine.GameBoardTest.java
edu.csun.group2.islide.engine.GameBoard.java
edu.csun.group2.islide.engine.GameManager.java
edu.csun.group2.islide.engine.InputHandler.java
edu.csun.group2.islide.engine.MoveComparator.java
edu.csun.group2.islide.engine.MoveTest.java
edu.csun.group2.islide.engine.Move.java
edu.csun.group2.islide.engine.Pair.java
edu.csun.group2.islide.engine.entity.SlideTile.java
edu.csun.group2.islide.engine.entity.TileManager.java
edu.csun.group2.islide.global.GameInfo.java
edu.csun.group2.islide.interfaces.IRenderable.java
edu.csun.group2.islide.iSlide.java