From 9cf446a8efaa8a6d16c260e343adb17ae3c75ff2 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Sun, 27 Jun 2021 10:59:09 +0200 Subject: Starting the XMLHandler tests --- src/test/java/musichub/util/XMLHandlerTest.java | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/test/java/musichub/util/XMLHandlerTest.java (limited to 'src/test') diff --git a/src/test/java/musichub/util/XMLHandlerTest.java b/src/test/java/musichub/util/XMLHandlerTest.java new file mode 100644 index 0000000..1be2258 --- /dev/null +++ b/src/test/java/musichub/util/XMLHandlerTest.java @@ -0,0 +1,30 @@ +package musichub.util; + + +import org.junit.jupiter.api.Test; +import org.w3c.dom.Document; +import org.w3c.dom.NodeList; + +public class XMLHandlerTest { + + final String DIR = System.getProperty("user.dir"); + final String JUNIT_FILE_PATH = DIR + "/files/JUnit.xml"; + +/* @Test + void testXMLHandlerClass() { + XMLHandler xmlHandler = new XMLHandler(); + }*/ + + @Test + void testCreateXML() { + XMLHandler xmlHandler = new XMLHandler(); //XML class + Document document = xmlHandler.createXMLDocument(); //XMLDocument method + xmlHandler.createXMLFile(document, JUNIT_FILE_PATH); //XMLFile method + } + + @Test + void testParseXMLFile() { + XMLHandler xmlHandler = new XMLHandler(); + NodeList albumNodes = xmlHandler.parseXMLFile(JUNIT_FILE_PATH); + } +} -- cgit v1.2.3 g/dunst?id=dddcc1cc5b7a727ad3ed399d432abff6363a2adc&follow=1'>diffstats
path: root/dot_config/dunst (unfollow)
Commit message (Expand)AuthorFilesLines
2025-01-22Enhance bash prompt to display current Git branchclyhtsuriva1-1/+4
2025-01-02Updates bash_profile, bashrc, aliasrc, confgm profile and xprofileclyhtsuriva6-5/+13
2024-11-08Updates bashrc, aliasrc, i3 config, mpv config and vimrcclyhtsuriva5-11/+27
2024-04-16Improving xterm conf (comments, buffer history, open links)clyhtsuriva1-19/+49
2024-03-21Adding networmanager_dmenu i3 keybindingclyhtsuriva1-0/+2
2024-03-17Updating i3 config and adding chatterino iconclyhtsuriva2-11/+13
2024-02-08Changing nagbar type for poweroffclyhtsuriva1-1/+1
2023-12-22Minor update of bashrc, aliasrc and i3's configclyhtsuriva3-1/+6
2023-06-27Change the LICENSE from WTFPLv2 to GPLv3clyhtsuriva2-10/+670