Remove underscores from test method names
This commit is contained in:
parent
fbb6117ab1
commit
4662e35478
2 changed files with 5 additions and 5 deletions
|
@ -313,7 +313,7 @@ public class ConditionalTest implements WithAssertions {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whereTrue_thenThrowException() {
|
public void whereTrueThenThrowException() {
|
||||||
//given
|
//given
|
||||||
assertThatExceptionOfType(IOException.class)
|
assertThatExceptionOfType(IOException.class)
|
||||||
.isThrownBy(() -> Condition.where(true)
|
.isThrownBy(() -> Condition.where(true)
|
||||||
|
@ -321,13 +321,13 @@ public class ConditionalTest implements WithAssertions {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whereFalse_thenDoNotThrowException() throws Exception {
|
public void whereFalseThenDoNotThrowException() throws Exception {
|
||||||
Condition.where(false)
|
Condition.where(false)
|
||||||
.thenThrow(new IOException());
|
.thenThrow(new IOException());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whereFalse_otherwiseThenThrowException() {
|
public void whereFalseOtherwiseThenThrowException() {
|
||||||
//given
|
//given
|
||||||
assertThatExceptionOfType(IOException.class)
|
assertThatExceptionOfType(IOException.class)
|
||||||
.isThrownBy(() -> Condition.where(false)
|
.isThrownBy(() -> Condition.where(false)
|
||||||
|
@ -335,7 +335,7 @@ public class ConditionalTest implements WithAssertions {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whereTrue_otherwiseThenDoNotThrowException() throws Exception {
|
public void whereTrueOtherwiseThenDoNotThrowException() throws Exception {
|
||||||
Condition.where(true)
|
Condition.where(true)
|
||||||
.otherwiseThrow(new IOException());
|
.otherwiseThrow(new IOException());
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ import java.lang.reflect.Constructor;
|
||||||
public class SuppressHelperTest implements WithAssertions {
|
public class SuppressHelperTest implements WithAssertions {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void utilityClass_canNotInstantiate() throws NoSuchMethodException {
|
public void utilityClassCannotBeInstantiate() throws NoSuchMethodException {
|
||||||
final Constructor<SuppressHelper> constructor = SuppressHelper.class.getDeclaredConstructor();
|
final Constructor<SuppressHelper> constructor = SuppressHelper.class.getDeclaredConstructor();
|
||||||
constructor.setAccessible(true);
|
constructor.setAccessible(true);
|
||||||
assertThatExceptionOfType(UnsupportedOperationException.class)
|
assertThatExceptionOfType(UnsupportedOperationException.class)
|
||||||
|
|
Loading…
Reference in a new issue