Hamcrest Flashcards

1
Q

Hamcrest

A

a framework that comes with a library of useful matchers for writing match rules using matcher objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The matchers are most commonly used for:

A

Writing test assertions
Data validation
Filtering

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

matcher contains

A

Matches if the examined object contains the specified value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

matcher empty

A

Matches if the examined object is empty

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

matcher equalTo

A

Matches if the examined object is logically equal to the specified value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

matcher greaterThan

A

Matches if the examined object is greater than the specified value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

matcher hasEntry

A

Matches if the examined Map has specified (key,value) entry

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

matcher isEmptyString

A

Matches if the examined object is an empty string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

matcher startsWith

A

Matches if the examined object starts with a specific value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

matcher instanceOf

A

Matches if the examined object is an instance of a specific object type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

matcher notNullValue

A

Matches if the examined object does not have a null value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly