From 55a59e16fd98f7e9b06f74cfd31b928ca0422412 Mon Sep 17 00:00:00 2001
From: "Peukert, Dr. Hagen" <hagen.peukert@uni-hamburg.de>
Date: Mon, 28 Feb 2022 16:33:50 +0100
Subject: [PATCH] Interoperability for Unix Paths finalized and Unit Testclass
 initialized

---
 Morphochron/.classpath            | 45 ++++++++++++++++---------------
 Morphochron/src/GUI_mainMenu.java |  4 +--
 Morphochron/src/Init.java         |  4 +--
 Morphochron/src/InitTest.java     | 12 +++++++++
 4 files changed, 39 insertions(+), 26 deletions(-)
 create mode 100644 Morphochron/src/InitTest.java

diff --git a/Morphochron/.classpath b/Morphochron/.classpath
index fdfa97b..02992a0 100644
--- a/Morphochron/.classpath
+++ b/Morphochron/.classpath
@@ -1,22 +1,23 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-	<classpathentry including="**/*.java" kind="src" output="target/classes" path="src">
-		<attributes>
-			<attribute name="optional" value="true"/>
-			<attribute name="maven.pomderived" value="true"/>
-		</attributes>
-	</classpathentry>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-16">
-		<attributes>
-			<attribute name="module" value="true"/>
-			<attribute name="maven.pomderived" value="true"/>
-		</attributes>
-	</classpathentry>
-	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
-		<attributes>
-			<attribute name="maven.pomderived" value="true"/>
-		</attributes>
-	</classpathentry>
-	<classpathentry kind="lib" path="jgoodies-forms-1.8.0.jar" sourcepath="jgoodies-forms-1.8.0-sources.jar"/>
-	<classpathentry kind="output" path="target/classes"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry including="**/*.java" kind="src" output="target/classes" path="src">
+		<attributes>
+			<attribute name="optional" value="true"/>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-16">
+		<attributes>
+			<attribute name="module" value="true"/>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="jgoodies-forms-1.8.0.jar" sourcepath="jgoodies-forms-1.8.0-sources.jar"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>
diff --git a/Morphochron/src/GUI_mainMenu.java b/Morphochron/src/GUI_mainMenu.java
index 979caaf..25ab9a2 100644
--- a/Morphochron/src/GUI_mainMenu.java
+++ b/Morphochron/src/GUI_mainMenu.java
@@ -151,7 +151,7 @@ public class GUI_mainMenu extends JFrame {
 		}
 		else
 		{
-			return "/";
+			return "/home/amadeus/Dokumente/Corpora/PENN Corpus/PENN-CORPORA";
 		}	
 	}
 	
@@ -163,7 +163,7 @@ public class GUI_mainMenu extends JFrame {
 		}
 		else
 		{
-			return "/";
+			return "/home/amadeus/Dokumente/Projekte/Morphochron";
 		}	
 	}
 	/**
diff --git a/Morphochron/src/Init.java b/Morphochron/src/Init.java
index 2bbf14c..1076f70 100644
--- a/Morphochron/src/Init.java
+++ b/Morphochron/src/Init.java
@@ -46,7 +46,7 @@ public class Init
 				
 					GUI_mainMenu frame = new GUI_mainMenu();
 					frame.setVisible(true);
-					
+					System.getProperties().list(System.out);
 					frame.getRunButton().addActionListener(new ActionListener() 
 					{
 						public void actionPerformed(ActionEvent e) 
@@ -92,7 +92,7 @@ public class Init
 //									normalizedWords.add("dignitary");
 //									normalizedWords.add("proposition");
 //									normalizedWords.add("daskommtnichtvor");
-									
+//									
 								
 									frame.setMessage("All words of type " + wordclass + " selected\n");
 									//detect affixes in word list as a pre-processing and countercheck these with OED REST API
diff --git a/Morphochron/src/InitTest.java b/Morphochron/src/InitTest.java
new file mode 100644
index 0000000..de1ee50
--- /dev/null
+++ b/Morphochron/src/InitTest.java
@@ -0,0 +1,12 @@
+import static org.junit.jupiter.api.Assertions.*;
+
+import org.junit.jupiter.api.Test;
+
+class InitTest {
+
+	@Test
+	void test() {
+		fail("Not yet implemented");
+	}
+
+}
-- 
GitLab