Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
agile-java
/
ChessAndroid
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ca02c79c
authored
Jun 01, 2018
by
Paktalin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RookTest added
parent
04a6b699
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
app/src/test/java/com/example/paktalin/agilejava_exercises/AllTests.java
app/src/test/java/com/example/paktalin/agilejava_exercises/pieces/RookTest.java
app/src/test/java/com/example/paktalin/agilejava_exercises/AllTests.java
View file @
ca02c79c
...
...
@@ -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
;
}
...
...
app/src/test/java/com/example/paktalin/agilejava_exercises/pieces/RookTest.java
0 → 100644
View file @
ca02c79c
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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment