Remove underscores from test method names

This commit is contained in:
Paul Campbell 2018-07-18 22:50:09 +01:00
parent fbb6117ab1
commit 4662e35478
2 changed files with 5 additions and 5 deletions

View file

@ -313,7 +313,7 @@ public class ConditionalTest implements WithAssertions {
}
@Test
public void whereTrue_thenThrowException() {
public void whereTrueThenThrowException() {
//given
assertThatExceptionOfType(IOException.class)
.isThrownBy(() -> Condition.where(true)
@ -321,13 +321,13 @@ public class ConditionalTest implements WithAssertions {
}
@Test
public void whereFalse_thenDoNotThrowException() throws Exception {
public void whereFalseThenDoNotThrowException() throws Exception {
Condition.where(false)
.thenThrow(new IOException());
}
@Test
public void whereFalse_otherwiseThenThrowException() {
public void whereFalseOtherwiseThenThrowException() {
//given
assertThatExceptionOfType(IOException.class)
.isThrownBy(() -> Condition.where(false)
@ -335,7 +335,7 @@ public class ConditionalTest implements WithAssertions {
}
@Test
public void whereTrue_otherwiseThenDoNotThrowException() throws Exception {
public void whereTrueOtherwiseThenDoNotThrowException() throws Exception {
Condition.where(true)
.otherwiseThrow(new IOException());
}

View file

@ -8,7 +8,7 @@ import java.lang.reflect.Constructor;
public class SuppressHelperTest implements WithAssertions {
@Test
public void utilityClass_canNotInstantiate() throws NoSuchMethodException {
public void utilityClassCannotBeInstantiate() throws NoSuchMethodException {
final Constructor<SuppressHelper> constructor = SuppressHelper.class.getDeclaredConstructor();
constructor.setAccessible(true);
assertThatExceptionOfType(UnsupportedOperationException.class)