14
14
import javax .websocket .Session ;
15
15
16
16
import static org .junit .jupiter .api .Assertions .assertEquals ;
17
- import static org .junit .jupiter .api .Assertions .assertNull ;
18
17
19
18
class SclValidatorEventRequestTest {
20
- @ Test
21
- void constructor_WhenCalledWith2Arguments_ThenValuesSet () {
22
- var type = SclFileType .CID ;
23
- var sclData = "Some SCL Data" ;
24
-
25
- var result = new SclValidatorEventRequest (type , sclData );
26
-
27
- assertNull (result .getSession ());
28
- assertEquals (type , result .getType ());
29
- assertEquals (sclData , result .getSclData ());
30
- }
31
-
32
19
@ Test
33
20
void constructor_WhenCalledWith3Arguments_ThenValuesSet () {
34
21
var session = Mockito .mock (Session .class );
@@ -46,9 +33,9 @@ void constructor_WhenCalledWith3Arguments_ThenValuesSet() {
46
33
void validateSettersAndGetters () {
47
34
var personPojo = PojoClassFactory .getPojoClass (SclValidatorEventRequest .class );
48
35
var validator = ValidatorBuilder .create ()
49
- // Lets make sure that we have a getter for every field defined.
36
+ // Let's make sure that we have a getter for every field defined.
50
37
.with (new GetterMustExistRule ())
51
- // Lets also validate that they are behaving as expected
38
+ // Let's also validate that they are behaving as expected
52
39
.with (new GetterTester ())
53
40
.build ();
54
41
0 commit comments