robfletcher
10/02/2018, 9:56 PMexpectThat(person) {
lastName == "Bowie"
}
robfletcher
10/02/2018, 9:57 PMrobfletcher
10/02/2018, 9:57 PMrobfletcher
10/02/2018, 9:57 PMrobfletcher
10/02/2018, 9:57 PMchristophsturm
10/02/2018, 9:58 PMexpect(that(userId).equals("12"))
christophsturm
10/02/2018, 9:59 PMexpectThat(userId) {equals("12")}
is betterrobfletcher
10/02/2018, 9:59 PMchristophsturm
10/02/2018, 10:00 PMlastName == "bowie" is true
which is maybe not super nice but usefulrobfletcher
10/02/2018, 10:00 PMrobfletcher
10/02/2018, 10:00 PMexpectThat(person) {
lastName.isEqualTo("Bowie")
}
robfletcher
10/02/2018, 10:01 PMrobfletcher
10/02/2018, 10:01 PMisEqualTo
on String
(or Any
)christophsturm
10/02/2018, 10:02 PMrobfletcher
10/02/2018, 10:02 PMrobfletcher
10/02/2018, 10:02 PMrobfletcher
10/02/2018, 10:03 PMchain
, map
, etc.christophsturm
10/02/2018, 10:05 PMrobfletcher
10/02/2018, 10:06 PMrobfletcher
10/02/2018, 10:07 PMrobfletcher
10/02/2018, 10:07 PMshouldMatch
method that accepts a matcher implchristophsturm
10/02/2018, 10:10 PMchristophsturm
10/02/2018, 10:11 PMget
instead of chain
? expectThat(person) {
get{lastName}.isEqualTo("Bowie")
}
robfletcher
10/02/2018, 10:11 PMrobfletcher
10/02/2018, 10:11 PMrobfletcher
10/02/2018, 10:11 PMrobfletcher
10/02/2018, 10:12 PMchristophsturm
10/02/2018, 10:13 PMrobfletcher
10/02/2018, 10:16 PMchristophsturm
10/02/2018, 10:17 PM