X-Git-Url: https://git.hedgecode.org/?p=chesshog.git;a=blobdiff_plain;f=chesshog-format%2Fsrc%2Ftest%2Fjava%2Forg%2Fhedgecode%2Fchess%2Ffen%2FFENParserTest.java;fp=src%2Ftest%2Fjava%2Forg%2Fhedgecode%2Fchess%2Ffen%2FFENParserTest.java;h=38d2520a5974789370928d766841dbb4ee024a6d;hp=4cb6f879e86bcf3528e0816637b2b309dcea87d9;hb=3819e21945f32159d441ee441f2cd156fcd8389f;hpb=f1421939d7793592403888e95360eca9c6b4d77f diff --git a/src/test/java/org/hedgecode/chess/fen/FENParserTest.java b/chesshog-format/src/test/java/org/hedgecode/chess/fen/FENParserTest.java similarity index 86% rename from src/test/java/org/hedgecode/chess/fen/FENParserTest.java rename to chesshog-format/src/test/java/org/hedgecode/chess/fen/FENParserTest.java index 4cb6f87..38d2520 100644 --- a/src/test/java/org/hedgecode/chess/fen/FENParserTest.java +++ b/chesshog-format/src/test/java/org/hedgecode/chess/fen/FENParserTest.java @@ -1,5 +1,5 @@ /* - * 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. @@ -41,15 +41,15 @@ public class FENParserTest extends AbstractPositionTest implements FENPositionTe @Test public void testParse() throws Exception { Parser fenParser = FENParser.getInstance(); - for (HierarchicalConfiguration testConfig : getXMLConfig().configurationsAt(TESTS)) { + for (HierarchicalConfiguration testConfig : getXMLConfig().configurationsAt(AbstractXMLConfigTest.TESTS)) { setPositionName( String.format( - MSG_FEN_POSITION, testConfig.getString(NAME) + MSG_FEN_POSITION, testConfig.getString(AbstractPositionTest.NAME) ) ); String fen = testConfig.getString(FEN_TAG); Position position = assignPosition( - testConfig.configurationAt(POSITION) + testConfig.configurationAt(AbstractPositionTest.POSITION) ); assertPositionEquals( position, @@ -61,10 +61,10 @@ public class FENParserTest extends AbstractPositionTest implements FENPositionTe @Override public List getXMLPositions() throws Exception { List 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) ) ); }