From 4662e35478847eca61ca0b7df170b7c3b00f850b Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 18 Jul 2018 22:50:09 +0100 Subject: [PATCH] Remove underscores from test method names --- .../java/net/kemitix/conditional/ConditionalTest.java | 8 ++++---- .../java/net/kemitix/conditional/SuppressHelperTest.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/net/kemitix/conditional/ConditionalTest.java b/src/test/java/net/kemitix/conditional/ConditionalTest.java index 6c07660..8e85a13 100644 --- a/src/test/java/net/kemitix/conditional/ConditionalTest.java +++ b/src/test/java/net/kemitix/conditional/ConditionalTest.java @@ -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()); } diff --git a/src/test/java/net/kemitix/conditional/SuppressHelperTest.java b/src/test/java/net/kemitix/conditional/SuppressHelperTest.java index 91ae946..5a4e813 100644 --- a/src/test/java/net/kemitix/conditional/SuppressHelperTest.java +++ b/src/test/java/net/kemitix/conditional/SuppressHelperTest.java @@ -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 constructor = SuppressHelper.class.getDeclaredConstructor(); constructor.setAccessible(true); assertThatExceptionOfType(UnsupportedOperationException.class)