Correct order

This commit is contained in:
JeremyStar™ 2024-06-28 00:55:51 +02:00
parent 8c566ad46d
commit 20b6bbaf60
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
4 changed files with 6 additions and 6 deletions

View file

@ -44,7 +44,7 @@ class EngineConfigurationTest {
/**
* The unit logger for this instance.
*/
private final UnitLogger logger = new UnitLogger(getClass());
private static final UnitLogger logger = new UnitLogger(EngineConfigurationTest.class);
/**
* The property group for the base engine.
*/

View file

@ -78,7 +78,7 @@ public class MiscellaneousTest {
void testPadNumbers(int number, int length, String expected) {
logger.testCall("testPadNumbers", number, length, expected);
String result = Miscellaneous.padNumbers(number, length);
assertEquals(result, expected, "Result \"" + result + "\" does not match expected output \"" + expected + "\"");
assertEquals(expected, result, "Result \"" + result + "\" does not match expected output \"" + expected + "\"");
}
/**

View file

@ -44,7 +44,7 @@ class PlaceholderEngineTest {
/**
* The {@link UnitLogger} for this instance.
*/
private final UnitLogger logger = new UnitLogger(getClass());
private static final UnitLogger logger = new UnitLogger(PlaceholderEngineTest.class);
@BeforeEach
void createInstance() {
@ -93,6 +93,6 @@ class PlaceholderEngineTest {
text = PlaceholderEngine.getInstance().process(text, placeholders);
assertEquals(text, expected, "Result \"" + text + "\" does not match expected output \"" + expected + "\"");
assertEquals(expected, text, "Result \"" + text + "\" does not match expected output \"" + expected + "\"");
}
}

View file

@ -30,14 +30,14 @@ import java.util.Properties;
import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Test the class {@link PropertyParser}.
* Tests the class {@link PropertyParser}.
*/
@DisplayName("PropertyParser")
class PropertyParserTest {
/**
* The {@link UnitLogger} for this instance.
*/
private final UnitLogger logger = new UnitLogger(getClass());
private static final UnitLogger logger = new UnitLogger(PropertyParserTest.class);
/**
* Tests the method {@code getString}.