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
7f46051f
authored
Jun 01, 2018
by
Paktalin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KnightTest added
parent
ca02c79c
Hide 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/KnightTest.java
app/src/test/java/com/example/paktalin/agilejava_exercises/AllTests.java
View file @
7f46051f
...
...
@@ -25,6 +25,7 @@ public class AllTests extends TestSuite {
suite
.
addTestSuite
(
QueenTest
.
class
);
suite
.
addTestSuite
(
BishopTest
.
class
);
suite
.
addTestSuite
(
RookTest
.
class
);
suite
.
addTestSuite
(
KnightTest
.
class
);
return
suite
;
}
...
...
app/src/test/java/com/example/paktalin/agilejava_exercises/pieces/KnightTest.java
0 → 100644
View file @
7f46051f
package
com
.
example
.
paktalin
.
agilejava_exercises
.
pieces
;
/**
* Created by Paktalin on 01/06/2018.
*/
public
class
KnightTest
extends
PieceTest
{
@Override
void
setExpectedRepresentation
()
{
representation
=
'n'
;
}
@Override
Piece
createPiece
(
Piece
.
Color
color
)
{
return
new
Knight
(
color
);
}
@Override
void
setExpectedStrength
()
{
strength
=
2.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