forked from StarOpenSource/Engine
Correct order
This commit is contained in:
parent
8c566ad46d
commit
20b6bbaf60
4 changed files with 6 additions and 6 deletions
|
@ -44,7 +44,7 @@ class EngineConfigurationTest {
|
||||||
/**
|
/**
|
||||||
* The unit logger for this instance.
|
* 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.
|
* The property group for the base engine.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -78,7 +78,7 @@ public class MiscellaneousTest {
|
||||||
void testPadNumbers(int number, int length, String expected) {
|
void testPadNumbers(int number, int length, String expected) {
|
||||||
logger.testCall("testPadNumbers", number, length, expected);
|
logger.testCall("testPadNumbers", number, length, expected);
|
||||||
String result = Miscellaneous.padNumbers(number, length);
|
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 + "\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -44,7 +44,7 @@ class PlaceholderEngineTest {
|
||||||
/**
|
/**
|
||||||
* The {@link UnitLogger} for this instance.
|
* The {@link UnitLogger} for this instance.
|
||||||
*/
|
*/
|
||||||
private final UnitLogger logger = new UnitLogger(getClass());
|
private static final UnitLogger logger = new UnitLogger(PlaceholderEngineTest.class);
|
||||||
|
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
void createInstance() {
|
void createInstance() {
|
||||||
|
@ -93,6 +93,6 @@ class PlaceholderEngineTest {
|
||||||
|
|
||||||
text = PlaceholderEngine.getInstance().process(text, placeholders);
|
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 + "\"");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,14 +30,14 @@ import java.util.Properties;
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test the class {@link PropertyParser}.
|
* Tests the class {@link PropertyParser}.
|
||||||
*/
|
*/
|
||||||
@DisplayName("PropertyParser")
|
@DisplayName("PropertyParser")
|
||||||
class PropertyParserTest {
|
class PropertyParserTest {
|
||||||
/**
|
/**
|
||||||
* The {@link UnitLogger} for this instance.
|
* 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}.
|
* Tests the method {@code getString}.
|
||||||
|
|
Loading…
Reference in a new issue