Commit ca02c79c by Paktalin

RookTest added

parent 04a6b699
......@@ -24,6 +24,7 @@ public class AllTests extends TestSuite {
suite.addTestSuite(PawnTest.class);
suite.addTestSuite(QueenTest.class);
suite.addTestSuite(BishopTest.class);
suite.addTestSuite(RookTest.class);
return suite;
}
......
package com.example.paktalin.agilejava_exercises.pieces;
/**
* Created by Paktalin on 01/06/2018.
*/
public class RookTest extends PieceTest {
@Override
void setExpectedRepresentation() {
representation = 'r';
}
@Override
Piece createPiece(Piece.Color color) {
return new Rook(color);
}
@Override
void setExpectedStrength() {
strength = 5;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment