File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
logstash-core/src/test/java/org/logstash/settings Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ public void setUp() {
38
38
}
39
39
40
40
@ Test
41
- public void givenUnsetPasswordSetting_thenIsConsideredAsValid () {
41
+ public void givenUnsetPasswordSetting_thenIsConsideredAsValid () {
42
42
assertNotThrown (() -> sut .validateValue ());
43
43
assertThat (sut .value (), is (instanceOf (co .elastic .logstash .api .Password .class )));
44
44
assertNull (((co .elastic .logstash .api .Password ) sut .value ()).getValue ());
45
45
}
46
46
47
47
@ Test
48
- public void givenUnsetPasswordSetting_wheIsSetIsInvoked_thenReturnFalse () {
48
+ public void givenUnsetPasswordSetting_wheIsSetIsInvoked_thenReturnFalse () {
49
49
assertFalse (sut .isSet ());
50
50
}
51
51
@@ -59,14 +59,14 @@ public void givenSetPasswordSetting_thenIsValid() {
59
59
}
60
60
61
61
@ Test
62
- public void givenSetPasswordSetting_whenIsSetIsInvoked_thenReturnTrue () {
62
+ public void givenSetPasswordSetting_whenIsSetIsInvoked_thenReturnTrue () {
63
63
sut .set ("s3cUr3p4$$w0rd" );
64
64
65
65
assertTrue (sut .isSet ());
66
66
}
67
67
68
68
@ Test
69
- public void givenSetPasswordSettingWithInvalidNonStringValue_thenRejectsTheInvalidValue () {
69
+ public void givenSetPasswordSettingWithInvalidNonStringValue_thenRejectsTheInvalidValue () {
70
70
Exception e = assertThrows (IllegalArgumentException .class , () -> sut .set (867_5309 ));
71
71
assertThat (e .getMessage (), is ("Setting `" + SETTING_NAME + "` could not coerce non-string value to password" ));
72
72
}
You can’t perform that action at this time.
0 commit comments