Skip to content

Commit fc2e9aa

Browse files
committed
[Test] Minor, fixed spacing in test names
1 parent 1ba319a commit fc2e9aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

logstash-core/src/test/java/org/logstash/settings/PasswordSettingTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ public void setUp() {
3838
}
3939

4040
@Test
41-
public void givenUnsetPasswordSetting_thenIsConsideredAsValid() {
41+
public void givenUnsetPasswordSetting_thenIsConsideredAsValid() {
4242
assertNotThrown(() -> sut.validateValue());
4343
assertThat(sut.value(), is(instanceOf(co.elastic.logstash.api.Password.class)));
4444
assertNull(((co.elastic.logstash.api.Password) sut.value()).getValue());
4545
}
4646

4747
@Test
48-
public void givenUnsetPasswordSetting_wheIsSetIsInvoked_thenReturnFalse() {
48+
public void givenUnsetPasswordSetting_wheIsSetIsInvoked_thenReturnFalse() {
4949
assertFalse(sut.isSet());
5050
}
5151

@@ -59,14 +59,14 @@ public void givenSetPasswordSetting_thenIsValid() {
5959
}
6060

6161
@Test
62-
public void givenSetPasswordSetting_whenIsSetIsInvoked_thenReturnTrue() {
62+
public void givenSetPasswordSetting_whenIsSetIsInvoked_thenReturnTrue() {
6363
sut.set("s3cUr3p4$$w0rd");
6464

6565
assertTrue(sut.isSet());
6666
}
6767

6868
@Test
69-
public void givenSetPasswordSettingWithInvalidNonStringValue_thenRejectsTheInvalidValue() {
69+
public void givenSetPasswordSettingWithInvalidNonStringValue_thenRejectsTheInvalidValue() {
7070
Exception e = assertThrows(IllegalArgumentException.class, () -> sut.set(867_5309));
7171
assertThat(e.getMessage(), is("Setting `" + SETTING_NAME + "` could not coerce non-string value to password"));
7272
}

0 commit comments

Comments
 (0)