Removed visibility modifier code smells
This commit is contained in:
@@ -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 €";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user