Skip to content
Snippets Groups Projects
Commit 13fd6dc4 authored by joeappleton18's avatar joeappleton18
Browse files

starting code

parent 1b73c9ab
No related branches found
No related tags found
No related merge requests found
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
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment