Removed visibility modifier code smells

This commit is contained in:
Marvin Scham
2023-05-24 01:08:53 +02:00
parent 50eb408b2f
commit a41d3c473c
3 changed files with 15 additions and 15 deletions

View File

@@ -10,10 +10,10 @@ import java.lang.reflect.Modifier;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class FormattingUtilTest {
class FormattingUtilTest {
@Test
public void testConstructorIsPrivate()
void testConstructorIsPrivate()
throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {
// Check for private constructor
Constructor<FormattingUtil> constructor = FormattingUtil.class.getDeclaredConstructor();
@@ -27,7 +27,7 @@ public class FormattingUtilTest {
}
@Test
public void testFormatEuro_positiveAmount() {
void testFormatEuro_positiveAmount() {
double amount = 1234.56;
String expectedFormattedAmount = "1.234,56 €";
@@ -37,7 +37,7 @@ public class FormattingUtilTest {
}
@Test
public void testFormatEuro_zeroAmount() {
void testFormatEuro_zeroAmount() {
double amount = 0.0;
String expectedFormattedAmount = "0,00 €";
@@ -47,7 +47,7 @@ public class FormattingUtilTest {
}
@Test
public void testFormatEuro_negativeAmount() {
void testFormatEuro_negativeAmount() {
double amount = -789.12;
String expectedFormattedAmount = "-789,12 €";