[LIB-9] Separate chesshog-format module
authorgotty <gotty@hedgecode.org>
Fri, 19 Apr 2019 03:12:18 +0000 (06:12 +0300)
committergotty <gotty@hedgecode.org>
Fri, 19 Apr 2019 03:12:18 +0000 (06:12 +0300)
56 files changed:
chesshog-format/pom.xml [new file with mode: 0644]
chesshog-format/src/main/java/org/hedgecode/chess/Builders.java [moved from src/main/java/org/hedgecode/chess/Builders.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/Parsers.java [moved from src/main/java/org/hedgecode/chess/Parsers.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/ascii/ASCII.java [moved from src/main/java/org/hedgecode/chess/ascii/ASCII.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/ascii/ASCIIBoardType.java [moved from src/main/java/org/hedgecode/chess/ascii/ASCIIBoardType.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/ascii/ASCIIBuilder.java [moved from src/main/java/org/hedgecode/chess/ascii/ASCIIBuilder.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/ascii/ASCIIParser.java [moved from src/main/java/org/hedgecode/chess/ascii/ASCIIParser.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/fen/FEN.java [moved from src/main/java/org/hedgecode/chess/fen/FEN.java with 95% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/fen/FENBuilder.java [moved from src/main/java/org/hedgecode/chess/fen/FENBuilder.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/fen/FENParser.java [moved from src/main/java/org/hedgecode/chess/fen/FENParser.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/img/AbstractImageLoader.java [moved from src/main/java/org/hedgecode/chess/img/AbstractImageLoader.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/img/DiagramBuilder.java [moved from src/main/java/org/hedgecode/chess/img/DiagramBuilder.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/img/ImageBuilder.java [moved from src/main/java/org/hedgecode/chess/img/ImageBuilder.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/img/ImageConstants.java [moved from src/main/java/org/hedgecode/chess/img/ImageConstants.java with 94% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/img/ImageException.java [moved from src/main/java/org/hedgecode/chess/img/ImageException.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/img/ImageFilter.java [moved from src/main/java/org/hedgecode/chess/img/ImageFilter.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/img/ImageFormat.java [moved from src/main/java/org/hedgecode/chess/img/ImageFormat.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/img/ImageLoader.java [moved from src/main/java/org/hedgecode/chess/img/ImageLoader.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/img/board/Board.java [moved from src/main/java/org/hedgecode/chess/img/board/Board.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/img/board/BoardLoader.java [moved from src/main/java/org/hedgecode/chess/img/board/BoardLoader.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/img/board/SquarePair.java [moved from src/main/java/org/hedgecode/chess/img/board/SquarePair.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/img/piece/PieceSet.java [moved from src/main/java/org/hedgecode/chess/img/piece/PieceSet.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/img/piece/PieceSetLoader.java [moved from src/main/java/org/hedgecode/chess/img/piece/PieceSetLoader.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/pgn/PGNBuilder.java [moved from src/main/java/org/hedgecode/chess/pgn/PGNBuilder.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/pgn/PGNParser.java [moved from src/main/java/org/hedgecode/chess/pgn/PGNParser.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/tcd/TCD.java [moved from src/main/java/org/hedgecode/chess/tcd/TCD.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/tcd/TCDBuilder.java [moved from src/main/java/org/hedgecode/chess/tcd/TCDBuilder.java with 96% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/tcd/TCDParser.java [moved from src/main/java/org/hedgecode/chess/tcd/TCDParser.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/tcg/TCG.java [moved from src/main/java/org/hedgecode/chess/tcg/TCG.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/tcg/TCGBuilder.java [moved from src/main/java/org/hedgecode/chess/tcg/TCGBuilder.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/tcg/TCGParser.java [moved from src/main/java/org/hedgecode/chess/tcg/TCGParser.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/wiki/Wiki.java [moved from src/main/java/org/hedgecode/chess/wiki/Wiki.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/wiki/WikiBuilder.java [moved from src/main/java/org/hedgecode/chess/wiki/WikiBuilder.java with 100% similarity]
chesshog-format/src/main/java/org/hedgecode/chess/wiki/WikiParser.java [moved from src/main/java/org/hedgecode/chess/wiki/WikiParser.java with 100% similarity]
chesshog-format/src/main/resources/org/hedgecode/chess/LocalStrings.properties [moved from src/main/resources/org/hedgecode/chess/LocalStrings.properties with 100% similarity]
chesshog-format/src/main/resources/org/hedgecode/chess/LocalStrings_ru.properties [moved from src/main/resources/org/hedgecode/chess/LocalStrings_ru.properties with 100% similarity]
chesshog-format/src/test/java/org/hedgecode/chess/ascii/ASCIIBuilderTest.java [moved from src/test/java/org/hedgecode/chess/ascii/ASCIIBuilderTest.java with 86% similarity]
chesshog-format/src/test/java/org/hedgecode/chess/ascii/ASCIIParserTest.java [moved from src/test/java/org/hedgecode/chess/ascii/ASCIIParserTest.java with 86% similarity]
chesshog-format/src/test/java/org/hedgecode/chess/ascii/ASCIIPositionTest.java [moved from src/test/java/org/hedgecode/chess/ascii/ASCIIPositionTest.java with 100% similarity]
chesshog-format/src/test/java/org/hedgecode/chess/fen/FENBuilderTest.java [moved from src/test/java/org/hedgecode/chess/fen/FENBuilderTest.java with 86% similarity]
chesshog-format/src/test/java/org/hedgecode/chess/fen/FENParserTest.java [moved from src/test/java/org/hedgecode/chess/fen/FENParserTest.java with 86% similarity]
chesshog-format/src/test/java/org/hedgecode/chess/fen/FENPositionTest.java [moved from src/test/java/org/hedgecode/chess/fen/FENPositionTest.java with 100% similarity]
chesshog-format/src/test/java/org/hedgecode/chess/tcd/TCDBuilderTest.java [moved from src/test/java/org/hedgecode/chess/tcd/TCDBuilderTest.java with 86% similarity]
chesshog-format/src/test/java/org/hedgecode/chess/tcd/TCDParserTest.java [moved from src/test/java/org/hedgecode/chess/tcd/TCDParserTest.java with 86% similarity]
chesshog-format/src/test/java/org/hedgecode/chess/tcd/TCDPositionTest.java [moved from src/test/java/org/hedgecode/chess/tcd/TCDPositionTest.java with 100% similarity]
chesshog-format/src/test/java/org/hedgecode/chess/wiki/WikiBuilderTest.java [moved from src/test/java/org/hedgecode/chess/wiki/WikiBuilderTest.java with 85% similarity]
chesshog-format/src/test/java/org/hedgecode/chess/wiki/WikiParserTest.java [moved from src/test/java/org/hedgecode/chess/wiki/WikiParserTest.java with 87% similarity]
chesshog-format/src/test/java/org/hedgecode/chess/wiki/WikiPositionTest.java [moved from src/test/java/org/hedgecode/chess/wiki/WikiPositionTest.java with 100% similarity]
chesshog-format/src/test/resources/org/hedgecode/chess/ascii/ASCIIBuilderTest.xml [moved from src/test/resources/org/hedgecode/chess/ascii/ASCIIBuilderTest.xml with 100% similarity]
chesshog-format/src/test/resources/org/hedgecode/chess/ascii/ASCIIParserTest.xml [moved from src/test/resources/org/hedgecode/chess/ascii/ASCIIParserTest.xml with 100% similarity]
chesshog-format/src/test/resources/org/hedgecode/chess/fen/FENBuilderTest.xml [moved from src/test/resources/org/hedgecode/chess/fen/FENBuilderTest.xml with 100% similarity]
chesshog-format/src/test/resources/org/hedgecode/chess/fen/FENParserTest.xml [moved from src/test/resources/org/hedgecode/chess/fen/FENParserTest.xml with 100% similarity]
chesshog-format/src/test/resources/org/hedgecode/chess/tcd/TCDBuilderTest.xml [moved from src/test/resources/org/hedgecode/chess/tcd/TCDBuilderTest.xml with 100% similarity]
chesshog-format/src/test/resources/org/hedgecode/chess/tcd/TCDParserTest.xml [moved from src/test/resources/org/hedgecode/chess/tcd/TCDParserTest.xml with 100% similarity]
chesshog-format/src/test/resources/org/hedgecode/chess/wiki/WikiBuilderTest.xml [moved from src/test/resources/org/hedgecode/chess/wiki/WikiBuilderTest.xml with 100% similarity]
chesshog-format/src/test/resources/org/hedgecode/chess/wiki/WikiParserTest.xml [moved from src/test/resources/org/hedgecode/chess/wiki/WikiParserTest.xml with 100% similarity]

diff --git a/chesshog-format/pom.xml b/chesshog-format/pom.xml
new file mode 100644 (file)
index 0000000..86a1a3f
--- /dev/null
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ Copyright (c) 2018. 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.
+  ~ You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.hedgecode.chess</groupId>
+        <artifactId>chesshog</artifactId>
+        <version>0.1-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>chesshog-format</artifactId>
+    <version>0.1-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <name>Hedgecode ChessHog Format</name>
+    <description>
+        Hedgecode ChessHog Format Module.
+    </description>
+
+    <properties>
+        <chessHogVersion>0.1-SNAPSHOT</chessHogVersion>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.hedgecode.chess</groupId>
+            <artifactId>chesshog</artifactId>
+            <version>${chessHogVersion}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.hedgecode.chess</groupId>
+            <artifactId>chesshog-core</artifactId>
+            <version>${chessHogVersion}</version>
+        </dependency>
+    </dependencies>
+
+</project>
\ No newline at end of file
@@ -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.
@@ -140,11 +140,11 @@ public final class FEN {
         } else {
             boolean isKing = false, isQueen = false;
             switch (color) {
-                case WHITE:
+                case Color.WHITE:
                     isKing = (castles.indexOf(WHITE_KING) >= 0);
                     isQueen = (castles.indexOf(WHITE_QUEEN) >= 0);
                     break;
-                case BLACK:
+                case Color.BLACK:
                     isKing = (castles.indexOf(BLACK_KING) >= 0);
                     isQueen = (castles.indexOf(BLACK_QUEEN) >= 0);
                     break;
@@ -160,24 +160,24 @@ public final class FEN {
     public static String getCastle(Castle whiteCastle, Castle blackCastle) {
         StringBuilder sb = new StringBuilder();
         switch (whiteCastle) {
-            case KING:
+            case Castle.KING:
                 sb.append(WHITE_KING);
                 break;
-            case QUEEN:
+            case Castle.QUEEN:
                 sb.append(WHITE_QUEEN);
                 break;
-            case BOTH:
+            case Castle.BOTH:
                 sb.append(WHITE_KING).append(WHITE_QUEEN);
                 break;
         }
         switch (blackCastle) {
-            case KING:
+            case Castle.KING:
                 sb.append(BLACK_KING);
                 break;
-            case QUEEN:
+            case Castle.QUEEN:
                 sb.append(BLACK_QUEEN);
                 break;
-            case BOTH:
+            case Castle.BOTH:
                 sb.append(BLACK_KING).append(BLACK_QUEEN);
                 break;
         }
@@ -34,7 +34,7 @@ public final class ImageConstants {
 
     private ImageConstants() {
         throw new AssertionError(
-                "No org.hedgecode.chess.img.ImageConstants instances!"
+                "No ImageConstants instances!"
         );
     }
 
@@ -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.
@@ -82,22 +82,22 @@ public final class TCDBuilder implements Builder {
                 byte[] pieces = new byte[2 * (squarePieces.size() + 1)];
                 int i = 0;
                 switch (piece) {
-                    case PAWN:
+                    case Piece.PAWN:
                         pieces[i++] = TCD.PAWN;
                         break;
-                    case KNIGHT:
+                    case Piece.KNIGHT:
                         pieces[i++] = TCD.KNIGHT;
                         break;
-                    case BISHOP:
+                    case Piece.BISHOP:
                         pieces[i++] = TCD.BISHOP;
                         break;
-                    case ROOK:
+                    case Piece.ROOK:
                         pieces[i++] = TCD.ROOK;
                         break;
-                    case QUEEN:
+                    case Piece.QUEEN:
                         pieces[i++] = TCD.QUEEN;
                         break;
-                    case KING:
+                    case Piece.KING:
                         pieces[i++] = TCD.KING;
                         break;
                 }
@@ -143,13 +143,13 @@ public final class TCDBuilder implements Builder {
         if (castle != null) {
             byte castleByte;
             switch (castle) {
-                case KING:
+                case Castle.KING:
                     castleByte = TCD.CASTLE_KING;
                     break;
-                case QUEEN:
+                case Castle.QUEEN:
                     castleByte = TCD.CASTLE_QUEEN;
                     break;
-                case BOTH:
+                case Castle.BOTH:
                     castleByte = TCD.CASTLE_BOTH;
                     break;
                 default:
@@ -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.
@@ -22,6 +22,7 @@ import java.util.List;
 import org.apache.commons.configuration.HierarchicalConfiguration;
 import org.apache.commons.configuration.XMLConfiguration;
 
+import org.junit.Assert;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.JUnit4;
@@ -43,15 +44,15 @@ public class ASCIIBuilderTest extends AbstractPositionTest implements ASCIIPosit
     @Test
     public void testBuild() throws Exception {
         Builder asciiBuilder = ASCIIBuilder.getInstance();
-        for (HierarchicalConfiguration testConfig : getXMLConfig().configurationsAt(TESTS)) {
+        for (HierarchicalConfiguration testConfig : getXMLConfig().configurationsAt(AbstractXMLConfigTest.TESTS)) {
             setPositionName(
                     String.format(
-                            MSG_ASCII_POSITION, testConfig.getString(NAME)
+                            MSG_ASCII_POSITION, testConfig.getString(AbstractPositionTest.NAME)
                     )
             );
             String ascii = testConfig.getString(ASCII_TAG);
             Position position = assignPosition(
-                    testConfig.configurationAt(POSITION)
+                    testConfig.configurationAt(AbstractPositionTest.POSITION)
             );
             if (testConfig.containsKey(ASCII_TYPE)) {
                 ASCII.setType(
@@ -74,11 +75,11 @@ public class ASCIIBuilderTest extends AbstractPositionTest implements ASCIIPosit
 
     @Override
     protected void assertStringEquals(String expected, String actual) {
-        assertNotNull(expected);
-        assertNotNull(actual);
+        Assert.assertNotNull(expected);
+        Assert.assertNotNull(actual);
         String[] expectedLines = expected.split(LINE_REGEX);
         String[] actualLines = actual.split(LINE_REGEX);
-        assertEquals(
+        Assert.assertEquals(
                 expectedLines.length,
                 actualLines.length
         );
@@ -93,10 +94,10 @@ public class ASCIIBuilderTest extends AbstractPositionTest implements ASCIIPosit
     @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)
                     )
             );
         }
@@ -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 ASCIIParserTest extends AbstractPositionTest implements ASCIIPositi
     @Test
     public void testParse() throws Exception {
         Parser asciiParser = ASCIIParser.getInstance();
-        for (HierarchicalConfiguration testConfig : getXMLConfig().configurationsAt(TESTS)) {
+        for (HierarchicalConfiguration testConfig : getXMLConfig().configurationsAt(AbstractXMLConfigTest.TESTS)) {
             setPositionName(
                     String.format(
-                            MSG_ASCII_POSITION, testConfig.getString(NAME)
+                            MSG_ASCII_POSITION, testConfig.getString(AbstractPositionTest.NAME)
                     )
             );
             String ascii = testConfig.getString(ASCII_TAG);
             Position position = assignPosition(
-                    testConfig.configurationAt(POSITION)
+                    testConfig.configurationAt(AbstractPositionTest.POSITION)
             );
             assertDiagramEquals(
                     position,
@@ -61,10 +61,10 @@ public class ASCIIParserTest extends AbstractPositionTest implements ASCIIPositi
     @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)
                     )
             );
         }
@@ -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 FENBuilderTest extends AbstractPositionTest implements FENPositionT
     @Test
     public void testBuild() throws Exception {
         Builder fenBuilder = FENBuilder.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)
             );
             assertStringEquals(
                     fen,
@@ -61,10 +61,10 @@ public class FENBuilderTest extends AbstractPositionTest implements FENPositionT
     @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)
                     )
             );
         }
@@ -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<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)
                     )
             );
         }
@@ -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 TCDBuilderTest extends AbstractPositionTest implements TCDPositionT
     @Test
     public void testBuild() throws Exception {
         Builder tcdBuilder = TCDBuilder.getInstance();
-        for (HierarchicalConfiguration testConfig : getXMLConfig().configurationsAt(TESTS)) {
+        for (HierarchicalConfiguration testConfig : getXMLConfig().configurationsAt(AbstractXMLConfigTest.TESTS)) {
             setPositionName(
                     String.format(
-                            MSG_TCD_POSITION, testConfig.getString(NAME)
+                            MSG_TCD_POSITION, testConfig.getString(AbstractPositionTest.NAME)
                     )
             );
             String tcd = testConfig.getString(TCD_TAG);
             Position position = assignPosition(
-                    testConfig.configurationAt(POSITION)
+                    testConfig.configurationAt(AbstractPositionTest.POSITION)
             );
             assertStringEquals(
                     tcd,
@@ -61,10 +61,10 @@ public class TCDBuilderTest extends AbstractPositionTest implements TCDPositionT
     @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)
                     )
             );
         }
@@ -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 TCDParserTest extends AbstractPositionTest implements TCDPositionTe
     @Test
     public void testParse() throws Exception {
         Parser tcdParser = TCDParser.getInstance();
-        for (HierarchicalConfiguration testConfig : getXMLConfig().configurationsAt(TESTS)) {
+        for (HierarchicalConfiguration testConfig : getXMLConfig().configurationsAt(AbstractXMLConfigTest.TESTS)) {
             setPositionName(
                     String.format(
-                            MSG_TCD_POSITION, testConfig.getString(NAME)
+                            MSG_TCD_POSITION, testConfig.getString(AbstractPositionTest.NAME)
                     )
             );
             String tcd = testConfig.getString(TCD_TAG);
             Position position = assignPosition(
-                    testConfig.configurationAt(POSITION)
+                    testConfig.configurationAt(AbstractPositionTest.POSITION)
             );
             assertPositionEquals(
                     position,
@@ -61,10 +61,10 @@ public class TCDParserTest extends AbstractPositionTest implements TCDPositionTe
     @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)
                     )
             );
         }
@@ -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.
@@ -22,6 +22,7 @@ import java.util.List;
 import org.apache.commons.configuration.HierarchicalConfiguration;
 import org.apache.commons.configuration.XMLConfiguration;
 
+import org.junit.Assert;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.JUnit4;
@@ -43,15 +44,15 @@ public class WikiBuilderTest extends AbstractPositionTest implements WikiPositio
     @Test
     public void testBuild() throws Exception {
         Builder wikiBuilder = WikiBuilder.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)) {
@@ -67,11 +68,11 @@ public class WikiBuilderTest extends AbstractPositionTest implements WikiPositio
 
     @Override
     protected void assertStringEquals(String expected, String actual) {
-        assertNotNull(expected);
-        assertNotNull(actual);
+        Assert.assertNotNull(expected);
+        Assert.assertNotNull(actual);
         String[] expectedLines = expected.split(LINE_REGEX);
         String[] actualLines = actual.split(LINE_REGEX);
-        assertEquals(
+        Assert.assertEquals(
                 expectedLines.length,
                 actualLines.length
         );
@@ -86,10 +87,10 @@ public class WikiBuilderTest extends AbstractPositionTest implements WikiPositio
     @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)
                     )
             );
         }
@@ -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 WikiParserTest extends AbstractPositionTest implements WikiPosition
     @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)) {
@@ -66,10 +66,10 @@ public class WikiParserTest extends AbstractPositionTest implements WikiPosition
     @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)
                     )
             );
         }