/*
- * Copyright (c) 2018. Developed by Hedgecode.
+ * Copyright (c) 2018-2019. Developed by Hedgecode.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@Test
public void testParse() throws Exception {
Parser wikiParser = WikiParser.getInstance();
- for (HierarchicalConfiguration testConfig : getXMLConfig().configurationsAt(TESTS)) {
+ for (HierarchicalConfiguration testConfig : getXMLConfig().configurationsAt(AbstractXMLConfigTest.TESTS)) {
setPositionName(
String.format(
- MSG_WIKI_POSITION, testConfig.getString(NAME)
+ MSG_WIKI_POSITION, testConfig.getString(AbstractPositionTest.NAME)
)
);
String wiki = testConfig.getString(WIKI_TAG);
Position position = assignPosition(
- testConfig.configurationAt(POSITION)
+ testConfig.configurationAt(AbstractPositionTest.POSITION)
);
boolean withTemplate = false;
if (testConfig.containsKey(WIKI_TEMPLATE)) {
@Override
public List<XMLConfiguration> getXMLPositions() throws Exception {
List<XMLConfiguration> xmlPositions = new LinkedList<>();
- for (HierarchicalConfiguration testConfig : getXMLConfig().configurationsAt(TESTS)) {
+ for (HierarchicalConfiguration testConfig : getXMLConfig().configurationsAt(AbstractXMLConfigTest.TESTS)) {
xmlPositions.add(
new XMLConfiguration(
- testConfig.configurationAt(POSITION)
+ testConfig.configurationAt(AbstractPositionTest.POSITION)
)
);
}