/
README
39 lines (24 loc) · 1.13 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Project to evaluate and demonstrate capabilities of different
Scala testing frameworks. Accompanying slides can be found at
https://docs.google.com/present/edit?id=0AdO9pIGZsCr5ZGQ2NGp2NDRfNjZkbjdtcmtjMw&hl=en
This project will have the following:
* It should have methods that can return booleans integers strings
and collections for exercising match assertions:
Util.reflect, Util.negate, Util.reflect
* It should have a method that can raise exceptions for exercising if
exception was raised:
calling Util.negate('x') will throw IllegalArgumentException
* It should have methods that take an object as an argument and call
methods on it for exercising mocks/stubs:
data object: Message
interface: MessageService
implementation: MessageServiceToFile
jmock example: MessagePingerJunitTest
* It should have a method that can perform a calculation like addition
for exercising use of mock/stub with custom method:
Message.validate could be use for this
Runbook
mvn surefire-report:report -DshowSuccess=false
mvn surefire-report:report-only
open target/site/surefire-report.html
mvn test -Dtest=UtilJunitTest