Commit b805e18f authored by Dr. Martin Goik's avatar Dr. Martin Goik

Merge branch 'master' of gitlab.mi.hdm-stuttgart.de:goik/GoikLectures

parents 7b2d5142 a8b21196
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" >
<!-- TODO: Implement me-->
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="exam.xsd" >
<lectures>
<lecture id="113105">Software Development 1</lecture>
<lecture id="113771">Database systems</lecture>
<lecture id="113305">Structured Data and applications 1</lecture>
</lectures>
<examinationResults>
<result lecture="113105" matriculationNumber="12345"
status="final">1,7</result>
<result lecture="113771" matriculationNumber="12345">2,3</result>
<result lecture="113771" matriculationNumber="55621">1,0</result>
<result lecture="113771" matriculationNumber="54321"
status="preliminary">3,0</result>
<result lecture="113305" matriculationNumber="12345">2,0</result>
</examinationResults>
</examinations>
DROP TABLE IF EXISTS Student;
CREATE TABLE Student (
matriculation INT PRIMARY KEY,
name VARCHAR(100) NOT NULL
);
/* TODO: Add missing tables */
/* Inserting students */
INSERT INTO Student VALUES(12345, 'Jim Knopf');
INSERT INTO Student VALUES(55621, 'Eva Morales');
INSERT INTO Student VALUES(54321, 'Kim Wilde');
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/exam.xsd" >
<lectures>
<lecture id="113105">Software Development 1</lecture>
</lectures>
<examinationResults/>
</examinations>
<?xmlTest
points = "1"
expectedToBeValid = "true"
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/exam.xsd" >
<lectures>
<lecture> <!-- Expected error: Mandatory @id attribute is missing -->
Software Development 1</lecture>
</lectures>
<examinationResults/>
</examinations>
<?xmlTest
points = "2"
expectedToBeValid = "false"
preconditionValid = "0100valid_Minimum.xml"
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/exam.xsd" >
<lectures/> <!-- Expected error: Must contain at least one <lecture> -->
<examinationResults/>
</examinations>
<?xmlTest
points = "2"
expectedToBeValid = "false"
preconditionValid = "0100valid_Minimum.xml"
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/exam.xsd" >
<lectures>
<lecture id="-113105"> <!-- Expected error: @id must be positive int value -->
Software Development 1</lecture>
</lectures>
<examinationResults/>
</examinations>
<?xmlTest
points = "2"
expectedToBeValid = "false"
preconditionValid = "0100valid_Minimum.xml"
?>
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/exam.xsd" >
<lectures>
<lecture id="sd1"> <!-- Expected error: @id must be positive int value -->
Software Development 1</lecture>
</lectures>
<examinationResults/>
</examinations>
<?xmlTest
points = "1"
expectedToBeValid = "false"
preconditionValid = "0100valid_Minimum.xml"
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/exam.xsd" >
<lectures>
<lecture id="0"> <!-- Expected error: @id must be positive int value -->
Software Development 1</lecture>
</lectures>
<examinationResults/>
</examinations>
<?xmlTest
points = "2"
expectedToBeValid = "false"
preconditionValid = "0100valid_Minimum.xml"
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/exam.xsd" >
<lectures>
<lecture id="113105">Software Development 1</lecture>
<lecture id="113407">Database systems</lecture>
</lectures>
<examinationResults/>
</examinations>
<?xmlTest
points = "1"
expectedToBeValid = "true"
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/exam.xsd" >
<lectures>
<lecture id="113405">Software Development 1</lecture>
<lecture id="113405">Database Systems</lecture> <!-- Expected error: Duplicate @id value 113405 -->
</lectures>
<examinationResults/>
</examinations>
<?xmlTest
points = "2"
expectedToBeValid = "false"
preconditionValid = "0110valid_twoLectures.xml"
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/exam.xsd" >
<lectures>
<lecture id="113105">Software Development 1</lecture>
<lecture id="113305">Structured Data</lecture>
</lectures>
<examinationResults>
<result lecture="113105" matriculationNumber="12345">2,3</result>
<result lecture="113105" matriculationNumber="55621" status="final">1,0</result>
<result lecture="113305" matriculationNumber="12345" >1,0</result>
<result lecture="113305" matriculationNumber="55621" status="final">3,3</result>
</examinationResults>
</examinations>
<?xmlTest
points = "1"
expectedToBeValid = "true"
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/exam.xsd" >
<lectures>
<lecture id="113105">Software Development 1</lecture>
</lectures>
<examinationResults>
<result lecture="113105" matriculationNumber="12345">2,4</result> <!-- Expected error: 2,4 is no valid mark -->
<result lecture="113105" matriculationNumber="55621">1,0</result>
</examinationResults>
</examinations>
<?xmlTest
points = "3"
expectedToBeValid = "false"
preconditionValid = "0200valid_exam.xml"
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/exam.xsd" >
<lectures>
<lecture id="113105">Software Development 1</lecture>
</lectures>
<examinationResults>
<result lecture="113105" matriculationNumber="-12345">2,3</result> <!-- Expected error: matriculationNumber must be positive int -->
</examinationResults>
</examinations>
<?xmlTest
points = "2"
expectedToBeValid = "false"
preconditionValid = "0200valid_exam.xml"
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/exam.xsd" >
<lectures>
<lecture id="113105">Software Development 1</lecture>
</lectures>
<examinationResults>
<result lecture="113105" matriculationNumber="0">2,3</result> <!-- Expected error: matriculationNumber must be positive int -->
</examinationResults>
</examinations>
<?xmlTest
points = "1"
expectedToBeValid = "false"
preconditionValid = "0200valid_exam.xml"
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/exam.xsd" >
<lectures>
<lecture id="113105">Software Development 1</lecture>
</lectures>
<examinationResults>
<result lecture="113105" matriculationNumber="abc">1,0</result> <!-- Expected error: matriculationNumber must be positive int -->
</examinationResults>
</examinations>
<?xmlTest
points = "2"
expectedToBeValid = "false"
preconditionValid = "0200valid_exam.xml"
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/exam.xsd" >
<lectures>
<lecture id="113105">Software Development 1</lecture>
</lectures>
<examinationResults>
<result lecture="113105" matriculationNumber="12345"
status="finished">1,0</result> <!-- Expected error: @status not in {"final", "preliminary"}.-->
</examinationResults>
</examinations>
<?xmlTest
points = "2"
expectedToBeValid = "false"
preconditionValid = "0200valid_exam.xml"
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/exam.xsd" >
<lectures>
<lecture id="113105">Software Development 1</lecture>
</lectures>
<examinationResults>
<result lecture="113105" matriculationNumber="12345">1,0</result>
<result lecture="113105" matriculationNumber="12345">1,0</result> <!-- Expected error: Duplicate (lecture, matriculationNumber).-->
</examinationResults>
</examinations>
<?xmlTest
points = "3"
expectedToBeValid = "false"
preconditionValid = "0200valid_exam.xml"
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<examinations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/exam.xsd" >
<lectures>
<lecture id="113105">Software Development 1</lecture>
<lecture id="113305">Structured Data</lecture>
</lectures>
<examinationResults>
<result lecture="113105" matriculationNumber="12345">2,3</result>
<result lecture="113105" matriculationNumber="55621" status="final">1,0</result>
<result lecture="113705" matriculationNumber="55621"
status="final">3,3</result> <!-- Expected error: No such <lecture id="113705">-->
</examinationResults>
</examinations>
<?xmlTest
points = "3"
expectedToBeValid = "false"
preconditionValid = "0200valid_exam.xml"
?>
\ No newline at end of file
<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</groupId>
<artifactId>sda1_winter2019_exam</artifactId>
<version>0.9</version>
<packaging>jar</packaging>
<name>sda1_winter2019_exam</name>
<url>https://freedocs.mi.hdm-stuttgart.de/sd1_sect_mavenCli.html</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<oxygenxml.version>21.1.0.2</oxygenxml.version>
</properties>
<repositories>
<repository>
<id>hdm-mi-internal-maven-repo</id>
<url>https://maven.mi.hdm-stuttgart.de/nexus/repository/mi-maven</url>
</repository>
<repository>
<id>oxygenxml-repo</id>
<url>https://maven.mi.hdm-stuttgart.de/nexus/repository/oxygen</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.oxygenxml</groupId>
<artifactId>oxygen-patched-xerces</artifactId>
<version>${oxygenxml.version}</version>
</dependency>
<dependency>
<groupId>com.oxygenxml</groupId>
<artifactId>oxygen</artifactId>
<version>${oxygenxml.version}</version>
</dependency>
<!-- Still needed to keep oxygenxml happy using legacy logging -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<dependency>
<groupId>com.rackspace.eclipse.webtools.sourceediting</groupId>
<artifactId>org.eclipse.wst.xml.xpath2.processor</artifactId>
<version>2.1.100</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.10</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.12.0</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<!-- Required for executable jar generation to avoid ClassNotFoundException:
com.fasterxml.jackson.core.type.TypeReference and similar dependency problems. -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.8</version>
</dependency>
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom2</artifactId>
<version>2.0.6</version>
</dependency>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<version>1.1.6</version>
</dependency>
<dependency>
<groupId>de.hdm_stuttgart.mi.exam</groupId>
<artifactId>unitmarking</artifactId>
<version>1.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>11</source>
<target>11</target>
<compilerArgument>-proc:none</compilerArgument>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<javaApiLinks>
<property>
<name>api_11</name>
<value>https://klausur.mi.hdm-stuttgart.de/doc/openjdk-11-doc/api/</value>
</property>
</javaApiLinks>
<stylesheetfile>localstyles.css</stylesheetfile>
<additionalJOptions>
<additionalJOption>-html5</additionalJOption>
</additionalJOptions>
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<archive>
<manifest>
<mainClass>de.hdm_stuttgart.mi.sda1.test.ex1.ShowReachedPoints</mainClass>
</manifest>
</archive>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project version="21.1">
<meta>
<filters directoryPatterns="" filePatterns="" positiveFilePatterns="" showHiddenFiles="false"/>
<options/>
</meta>
<projectTree name="sda1.xpr">
<folder path="."/>
</projectTree>
</project>
\ No newline at end of file
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
<id>fat-tests</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<outputDirectory></outputDirectory>
<useProjectArtifact>true</useProjectArtifact>
<unpack>true</unpack>
<scope>test</scope>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<directory>${project.build.directory}/test-classes</directory>
<outputDirectory></outputDirectory>
<includes>
<include>**/*.class</include>
</includes>
<useDefaultExcludes>true</useDefaultExcludes>
</fileSet>
<fileSet>
<directory>${project.build.directory}/classes</directory>