diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs index ea7a397f865d50667f09ba3badfec9dd848711ec..86b907aa195218ff03a796668281e75197516fd9 100644 --- a/.settings/org.eclipse.jdt.core.prefs +++ b/.settings/org.eclipse.jdt.core.prefs @@ -1,8 +1,8 @@ eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.compliance=1.7 org.eclipse.jdt.core.compiler.debug.lineNumber=generate org.eclipse.jdt.core.compiler.debug.localVariable=generate org.eclipse.jdt.core.compiler.debug.sourceFile=generate @@ -12,5 +12,5 @@ org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore org.eclipse.jdt.core.compiler.processAnnotations=disabled -org.eclipse.jdt.core.compiler.release=disabled -org.eclipse.jdt.core.compiler.source=1.8 +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..4807f0e141357bf7404572cfaad808c86e63b6e4 --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +# Lab 6: Testing YATL + +This week, we are going to test the YATL (Yet Another Todo List) application. + +## Exercise 1: Setting up the Project + +### Exercise 1.1: Cloning the Repository + +1. Clone the repository from GitHub using the following command: + + ```bash + git clone -b exercise-2-5-solution https://gitlab.surrey.ac.uk/com_1028_labs/lab-5.git yatl + ``` + +The above command will clone the repository into a directory called `yatl`. + +2. Import the project folder into your Eclipse Workspace: `File -> Open Projects from File System -> Directory -> yatl` + +### Exercise 1.2: Installing the Dependencies + +In order to test the YATL application, we are going to need to install three, amazing, testing libraries: + +- junit - JUnit for unit testing +- mockito - Mockito for mocking objects in unit tests +- rest-assured - Testing and validating our APIs + +Recall, we can find Maven dependencies by searching the [Maven Repository](https://mvnrepository.com/). Once we have found the dependencies, we can locate the XML code to the dependencies section of the `pom.xml` file. + +1. See if you can find the above dependencies on the Maven Repository. When you have found them, add them to the `pom.xml` file. You should install the latests versions of the dependencies, at the time of writing: + + - junit: 5.10.2 + - mockito: 5.11.0 + - rest-assured: 5.4.0 + +[Check your POM.xml file against the solutions]() + +### Exercise 1.3: Setting up the Test Directory diff --git a/src/test/java/empty b/src/test/java/empty deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000