Piece { public static boolean isWhite(int pType) { return pType < BKING; }  static boolean isWhite(int pType); static int makeWhite(int pType); static int makeBlack(int pType); static final int EMPTY; static final int WKING; static final int WQUEEN; static final int WROOK; static final int WBISHOP; static final int WKNIGHT; static final int WPAWN; static final int BKING; static final int BQUEEN; static final int BROOK; static final int BBISHOP; static final int BKNIGHT; static final int BPAWN; static final int nPieceTypes; }
@Test public void testIsWhite() { System.out.println("isWhite"); assertEquals(false, Piece.isWhite(Piece.BBISHOP)); assertEquals(true , Piece.isWhite(Piece.WBISHOP)); assertEquals(true , Piece.isWhite(Piece.WKING)); assertEquals(false, Piece.isWhite(Piece.BKING)); }