diff --git a/CW1/StudentGradeManagement/.mvn/jvm.config b/CW1/StudentGradeManagement/.mvn/jvm.config new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/CW1/StudentGradeManagement/.mvn/maven.config b/CW1/StudentGradeManagement/.mvn/maven.config new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/CW1/StudentGradeManagement/pom.xml b/CW1/StudentGradeManagement/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..55a625a966079cabdf38c0bddda38c96e34110b6 --- /dev/null +++ b/CW1/StudentGradeManagement/pom.xml @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="UTF-8"?> +<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>uk.ac.rhul.cs2800.model</groupId> + <artifactId>StudentGradeManagement</artifactId> + <version>1.0-SNAPSHOT</version> + + <name>StudentGradeManagement</name> + <!-- FIXME change it to the project's website --> + <url>http://www.example.com</url> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <maven.compiler.release>17</maven.compiler.release> + </properties> + + <dependencyManagement> + <dependencies> + <dependency> + <groupId>org.junit</groupId> + <artifactId>junit-bom</artifactId> + <version>5.11.0</version> + <type>pom</type> + <scope>import</scope> + </dependency> + </dependencies> + </dependencyManagement> + + <dependencies> + <dependency> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter-api</artifactId> + <scope>test</scope> + </dependency> + <!-- Optionally: parameterized tests support --> + <dependency> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter-params</artifactId> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> + <plugins> + <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle --> + <plugin> + <artifactId>maven-clean-plugin</artifactId> + <version>3.4.0</version> + </plugin> + <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --> + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>3.3.1</version> + </plugin> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.13.0</version> + </plugin> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <version>3.3.0</version> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <version>3.4.2</version> + </plugin> + <plugin> + <artifactId>maven-install-plugin</artifactId> + <version>3.1.2</version> + </plugin> + <plugin> + <artifactId>maven-deploy-plugin</artifactId> + <version>3.1.2</version> + </plugin> + <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle --> + <plugin> + <artifactId>maven-site-plugin</artifactId> + <version>3.12.1</version> + </plugin> + <plugin> + <artifactId>maven-project-info-reports-plugin</artifactId> + <version>3.6.1</version> + </plugin> + </plugins> + </pluginManagement> + </build> +</project> diff --git a/CW1/StudentGradeManagement/src/main/java/uk/ac/rhul/cs2800/model/App.java b/CW1/StudentGradeManagement/src/main/java/uk/ac/rhul/cs2800/model/App.java new file mode 100644 index 0000000000000000000000000000000000000000..e71d3b0582219cff7a6044030f05b3d0ee757c17 --- /dev/null +++ b/CW1/StudentGradeManagement/src/main/java/uk/ac/rhul/cs2800/model/App.java @@ -0,0 +1,10 @@ +package uk.ac.rhul.cs2800.model; + +/** + * Hello world! + */ +public class App { + public static void main(String[] args) { + System.out.println("Hello World!"); + } +} diff --git a/CW1/StudentGradeManagement/src/test/java/uk/ac/rhul/cs2800/model/AppTest.java b/CW1/StudentGradeManagement/src/test/java/uk/ac/rhul/cs2800/model/AppTest.java new file mode 100644 index 0000000000000000000000000000000000000000..ce7098f5a7aadba41ad71c1eb1578b6f153cb08e --- /dev/null +++ b/CW1/StudentGradeManagement/src/test/java/uk/ac/rhul/cs2800/model/AppTest.java @@ -0,0 +1,19 @@ +package uk.ac.rhul.cs2800.model; + +import static org.junit.jupiter.api.Assertions.assertTrue; + +import org.junit.jupiter.api.Test; + +/** + * Unit test for simple App. + */ +public class AppTest { + + /** + * Rigorous Test :-) + */ + @Test + public void shouldAnswerWithTrue() { + assertTrue(true); + } +} diff --git a/CW1/StudentGradeManagement/target/classes/uk/ac/rhul/cs2800/model/App.class b/CW1/StudentGradeManagement/target/classes/uk/ac/rhul/cs2800/model/App.class new file mode 100644 index 0000000000000000000000000000000000000000..89fa6312ec5abdf405501de0971d879d93c8be95 Binary files /dev/null and b/CW1/StudentGradeManagement/target/classes/uk/ac/rhul/cs2800/model/App.class differ diff --git a/CW1/StudentGradeManagement/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/CW1/StudentGradeManagement/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000000000000000000000000000000000000..a23b21e69cc33ceba96afd122ea44889c343908e --- /dev/null +++ b/CW1/StudentGradeManagement/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1 @@ +uk/ac/rhul/cs2800/model/App.class diff --git a/CW1/StudentGradeManagement/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/CW1/StudentGradeManagement/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000000000000000000000000000000000000..eb52bb882f3ac8e1ada9636f2219ee42ae00ddc1 --- /dev/null +++ b/CW1/StudentGradeManagement/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1 @@ +/Users/sulemamalik/cs2800-lab-2024/cs2800-lab-2024/CW1/StudentGradeManagment/src/test/java/uk/ac/rhul/cs2800/model/cs2800-lab-2024/CW1/StudentGradeManagement/src/main/java/uk/ac/rhul/cs2800/model/App.java