diff --git a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/pom.xml b/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/pom.xml index d81babfe4229f382e618fc36d92f2c839efb646b..5482c69b654ebe51b15b024bcac6fb947fe35fd5 100644 --- a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/pom.xml +++ b/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/pom.xml @@ -1,98 +1,107 @@ -<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> - - <groupId>de.hdm_stuttgart.mi.sda1.saxhtml</groupId> - <artifactId>saxmemo2html_solution</artifactId> - <version>1.0</version> - - <packaging>jar</packaging> - - <name>SaxMemo2Hhtml_solution</name> - - <!--Fixme: Add a sensible project related domain here --> - <url>http://www.mi.hdm-stuttgart.de/freedocs</url> - - <properties> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - </properties> - - <dependencies> - - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.11</version> - <scope>test</scope> - </dependency> - - <dependency> - <groupId>org.jdom</groupId> - <artifactId>jdom2</artifactId> - <version>2.0.5</version> - </dependency> - - <dependency> - <groupId>jaxen</groupId> - <artifactId>jaxen</artifactId> - <version>1.1.4</version> - </dependency> - - <dependency> - <groupId>org.apache.logging.log4j</groupId> - <artifactId>log4j-api</artifactId> - <version>2.1</version> - </dependency> - <dependency> - <groupId>org.apache.logging.log4j</groupId> - <artifactId>log4j-core</artifactId> - <version>2.1</version> - </dependency> - - </dependencies> - - <build> - <plugins> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>3.1</version> - <configuration> - <source>1.8</source> - <target>1.8</target> - </configuration> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <version>2.10.1</version> - <configuration/> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-shade-plugin</artifactId> - <version>2.3</version> - <configuration> - <transformers> - <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> - <manifestEntries> - <Main-Class>de.hdm_stuttgart.de.saxstandard.App</Main-Class> - </manifestEntries> - </transformer> - </transformers> - </configuration> - <executions> - <execution> - <phase>package</phase> - <goals> - <goal>shade</goal> - </goals> - </execution> - </executions> - </plugin> - - </plugins> - </build> +<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> + + <groupId>de.hdm_stuttgart.mi.sda1.saxhtml</groupId> + <artifactId>saxmemo2html_solution</artifactId> + <version>1.0</version> + + <packaging>jar</packaging> + + <name>SaxMemo2Hhtml_solution</name> + + <!--Fixme: Add a sensible project related domain here --> + <url>http://www.mi.hdm-stuttgart.de/freedocs</url> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <dependencies> + + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.11</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>org.jdom</groupId> + <artifactId>jdom2</artifactId> + <version>2.0.5</version> + </dependency> + + <dependency> + <groupId>jaxen</groupId> + <artifactId>jaxen</artifactId> + <version>1.1.4</version> + </dependency> + + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-api</artifactId> + <version>2.1</version> + </dependency> + + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-core</artifactId> + <version>2.1</version> + </dependency> + + <dependency> + <groupId>de.hdm_stuttgart.mi.exam</groupId> + <artifactId>examtesting</artifactId> + <version>1.0</version> + </dependency> + + </dependencies> + + <build> + <plugins> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.1</version> + <configuration> + <source>1.8</source> + <target>1.8</target> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>2.10.1</version> + <configuration /> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>2.3</version> + <configuration> + <transformers> + <transformer + implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> + <manifestEntries> + <Main-Class>de.hdm_stuttgart.de.saxstandard.App</Main-Class> + </manifestEntries> + </transformer> + </transformers> + </configuration> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + </execution> + </executions> + </plugin> + + </plugins> + </build> </project> diff --git a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/main/java/de/hdm_stuttgart/mi/sda1/saxhtml/v1/Memo2HtmlHandler.java b/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/main/java/de/hdm_stuttgart/mi/sda1/saxhtml/v1/Memo2HtmlHandler.java index 01d69f1f407147b5a72d3c52d534237f790949ec..eca6f67aa774a971558476de8ca6612fd54ffd37 100644 --- a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/main/java/de/hdm_stuttgart/mi/sda1/saxhtml/v1/Memo2HtmlHandler.java +++ b/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/main/java/de/hdm_stuttgart/mi/sda1/saxhtml/v1/Memo2HtmlHandler.java @@ -6,7 +6,7 @@ import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; -import de.hdm_stuttgart.mi.sda1.saxhtml.tools.SaxFilter; +import de.hdm_stuttgart.mi.exam.SaxFilter; /** * Turning <memo> documents to HTML diff --git a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/main/java/de/hdm_stuttgart/mi/sda1/saxhtml/v2/Memo2HtmlHandler.java b/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/main/java/de/hdm_stuttgart/mi/sda1/saxhtml/v2/Memo2HtmlHandler.java index 2d8422c5afbde468c2ef05e10438e5a8801858a9..698035324320e484e2b12e11e83185e97c29d063 100644 --- a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/main/java/de/hdm_stuttgart/mi/sda1/saxhtml/v2/Memo2HtmlHandler.java +++ b/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/main/java/de/hdm_stuttgart/mi/sda1/saxhtml/v2/Memo2HtmlHandler.java @@ -8,7 +8,7 @@ import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; -import de.hdm_stuttgart.mi.sda1.saxhtml.tools.SaxFilter; +import de.hdm_stuttgart.mi.exam.SaxFilter; /** * Turning <memo> documents to HTML diff --git a/ws/eclipse/ExamTesting/.gitignore b/ws/eclipse/ExamTesting/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..07e9d6ca45c0a23af1bf27c52bd85542944fb39f --- /dev/null +++ b/ws/eclipse/ExamTesting/.gitignore @@ -0,0 +1,5 @@ +/target/ +/.settings/ +.classpath +.project +/dependency-reduced-pom.xml diff --git a/ws/eclipse/ExamTesting/pom.xml b/ws/eclipse/ExamTesting/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..8c61e755043a1e1aac0a8fc02615b1fb202d52e9 --- /dev/null +++ b/ws/eclipse/ExamTesting/pom.xml @@ -0,0 +1,96 @@ +<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> + + <groupId>de.hdm_stuttgart.mi.exam</groupId> + <artifactId>examtesting</artifactId> + <version>1.0</version> + + <packaging>jar</packaging> + + <name>examtesting</name> + + <url>http://www.mi.hdm-stuttgart.de/freedocs</url> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <dependencies> + + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.11</version> + </dependency> + + <dependency> + <groupId>org.jdom</groupId> + <artifactId>jdom2</artifactId> + <version>2.0.5</version> + </dependency> + + <dependency> + <groupId>jaxen</groupId> + <artifactId>jaxen</artifactId> + <version>1.1.4</version> + </dependency> + + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-api</artifactId> + <version>2.1</version> + </dependency> + <dependency> + <groupId>org.apache.logging.log4j</groupId> + <artifactId>log4j-core</artifactId> + <version>2.1</version> + </dependency> + + </dependencies> + + <build> + <plugins> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.1</version> + <configuration> + <source>1.8</source> + <target>1.8</target> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>2.10.1</version> + <configuration/> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>2.3</version> + <configuration> + <transformers> + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> + <manifestEntries> + <Main-Class>de.hdm_stuttgart.de.saxstandard.App</Main-Class> + </manifestEntries> + </transformer> + </transformers> + </configuration> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + </execution> + </executions> + </plugin> + + </plugins> + </build> +</project> diff --git a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/test/java/de/hdm_stuttgart/de/mi/exam/test/sax/AssertXpathResult.java b/ws/eclipse/ExamTesting/src/main/java/de/hdm_stuttgart/de/mi/exam/test/sax/AssertXpathResult.java similarity index 100% rename from Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/test/java/de/hdm_stuttgart/de/mi/exam/test/sax/AssertXpathResult.java rename to ws/eclipse/ExamTesting/src/main/java/de/hdm_stuttgart/de/mi/exam/test/sax/AssertXpathResult.java diff --git a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/test/java/de/hdm_stuttgart/de/mi/exam/test/sax/DomAssert.java b/ws/eclipse/ExamTesting/src/main/java/de/hdm_stuttgart/de/mi/exam/test/sax/DomAssert.java similarity index 100% rename from Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/test/java/de/hdm_stuttgart/de/mi/exam/test/sax/DomAssert.java rename to ws/eclipse/ExamTesting/src/main/java/de/hdm_stuttgart/de/mi/exam/test/sax/DomAssert.java diff --git a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/test/java/de/hdm_stuttgart/de/mi/exam/test/sax/SaxFilterTest.java b/ws/eclipse/ExamTesting/src/main/java/de/hdm_stuttgart/de/mi/exam/test/sax/SaxFilterTest.java similarity index 96% rename from Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/test/java/de/hdm_stuttgart/de/mi/exam/test/sax/SaxFilterTest.java rename to ws/eclipse/ExamTesting/src/main/java/de/hdm_stuttgart/de/mi/exam/test/sax/SaxFilterTest.java index c0f4ed784f1ee0ab78f255abf622ea3f06f88d01..16ec754c69215c085b35e8220c2143107353e5c4 100644 --- a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/test/java/de/hdm_stuttgart/de/mi/exam/test/sax/SaxFilterTest.java +++ b/ws/eclipse/ExamTesting/src/main/java/de/hdm_stuttgart/de/mi/exam/test/sax/SaxFilterTest.java @@ -18,8 +18,8 @@ import org.junit.Before; import org.xml.sax.SAXException; import org.xml.sax.XMLReader; -import de.hdm_stuttgart.mi.sda1.saxhtml.tools.SaxFilter; -import de.hdm_stuttgart.mi.sda1.saxhtml.tools.StandardErrorHandler; +import de.hdm_stuttgart.mi.exam.SaxFilter; +import de.hdm_stuttgart.mi.exam.StandardErrorHandler; /** * Turning <memo> documents to HTML as being shown in sample document diff --git a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/main/java/de/hdm_stuttgart/mi/sda1/saxhtml/tools/SaxFilter.java b/ws/eclipse/ExamTesting/src/main/java/de/hdm_stuttgart/mi/exam/SaxFilter.java similarity index 90% rename from Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/main/java/de/hdm_stuttgart/mi/sda1/saxhtml/tools/SaxFilter.java rename to ws/eclipse/ExamTesting/src/main/java/de/hdm_stuttgart/mi/exam/SaxFilter.java index 1c1f8e4ea767d183beb0092f6dbf0efe37c4c8cb..271b081a8e1d10bd0888ecd2ba8cfa21e0c68a35 100644 --- a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/main/java/de/hdm_stuttgart/mi/sda1/saxhtml/tools/SaxFilter.java +++ b/ws/eclipse/ExamTesting/src/main/java/de/hdm_stuttgart/mi/exam/SaxFilter.java @@ -1,4 +1,4 @@ -package de.hdm_stuttgart.mi.sda1.saxhtml.tools; +package de.hdm_stuttgart.mi.exam; import java.io.PrintStream; diff --git a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/main/java/de/hdm_stuttgart/mi/sda1/saxhtml/tools/StandardErrorHandler.java b/ws/eclipse/ExamTesting/src/main/java/de/hdm_stuttgart/mi/exam/StandardErrorHandler.java similarity index 94% rename from Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/main/java/de/hdm_stuttgart/mi/sda1/saxhtml/tools/StandardErrorHandler.java rename to ws/eclipse/ExamTesting/src/main/java/de/hdm_stuttgart/mi/exam/StandardErrorHandler.java index cb23819bf28efc1ddf8f0449884b44cc0e6e62e1..9ce0a5a3f6f238e15a18a15d47b16fe7fa3b94f5 100644 --- a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/src/main/java/de/hdm_stuttgart/mi/sda1/saxhtml/tools/StandardErrorHandler.java +++ b/ws/eclipse/ExamTesting/src/main/java/de/hdm_stuttgart/mi/exam/StandardErrorHandler.java @@ -1,4 +1,4 @@ -package de.hdm_stuttgart.mi.sda1.saxhtml.tools; +package de.hdm_stuttgart.mi.exam; import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; diff --git a/ws/eclipse/ExamTesting/src/main/resources/.gitignore b/ws/eclipse/ExamTesting/src/main/resources/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..472b549de865a7052a86fb69990f7fcb4feacc32 --- /dev/null +++ b/ws/eclipse/ExamTesting/src/main/resources/.gitignore @@ -0,0 +1,2 @@ +/memo.xml.1.html +/memo.xml.2.html diff --git a/ws/eclipse/ExamTesting/src/main/resources/log4j2.xml b/ws/eclipse/ExamTesting/src/main/resources/log4j2.xml new file mode 100644 index 0000000000000000000000000000000000000000..ffeb6ae18a8771999a1ed147e4237c25e87c4c34 --- /dev/null +++ b/ws/eclipse/ExamTesting/src/main/resources/log4j2.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Configuration> + <Appenders> + <File name="A1" fileName="A1.log" append="false"> + <PatternLayout pattern="%t %-5p %c{2} - %m%n"/> + </File> + <Console name="STDOUT" target="SYSTEM_OUT"> + <PatternLayout pattern="%C{2} (%F:%L) - %m%n"/> + </Console> + </Appenders> + <Loggers> + + <!-- You my want to define class or package level per-logger rules --> + <Logger name="de.hdm_stuttgart.de.saxstandard.App" level="debug"> + <AppenderRef ref="A1"/> + </Logger> + <Root level="debug"> + <AppenderRef ref="STDOUT"/> + </Root> + </Loggers> +</Configuration> \ No newline at end of file