Skip to content

Commit

Permalink
refactor[wrapper-tests]: move wrapper tests to a wrapper subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucy Ciara Herud-Thomassen authored and Lucy Ciara Herud-Thomassen committed Mar 12, 2026
1 parent bdd2284 commit fe39dd0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/main/java/edu/group5/app/App.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package edu.group5.app;

import edu.group5.app.control.DbWrapper;
import edu.group5.app.control.wrapper.DbWrapper;

/**
* Hello world!
Expand All @@ -11,7 +11,7 @@ public static void main(String[] args) throws InterruptedException {
try {
System.out.println(db.connect());
} catch (Exception e) {
e.printStackTrace();
e.getMessage();
}
}
}
5 changes: 0 additions & 5 deletions src/test/java/edu/group5/app/control/WrapperTest.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package edu.group5.app.control;
package edu.group5.app.control.wrapper;

import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down Expand Up @@ -30,7 +30,8 @@ void init() {
}

/**
* Checks if inputting null as the urlString throws the expected exception during construction.
* Checks if inputting null as the urlString throws the expected exception
* during construction.
*/
@Test
public void nullUrlThrowsException() {
Expand All @@ -40,7 +41,8 @@ public void nullUrlThrowsException() {
}

/**
* Checks if inputting an empty urlString throws the expected exception during construction.
* Checks if inputting an empty urlString throws the expected exception during
* construction.
*/
@Test
public void emptyUrlThrowsException() {
Expand All @@ -50,7 +52,8 @@ public void emptyUrlThrowsException() {
}

/**
* Checks if an invalid urlString throws the expected exception during construction.
* Checks if an invalid urlString throws the expected exception during
* construction.
*/
@Test
public void faultyUrlThrowsException() {
Expand All @@ -60,8 +63,8 @@ public void faultyUrlThrowsException() {
}

// /**
// * Checks if import returns False when there's no internet connection.
// */
// * Checks if import returns False when there's no internet connection.
// */
// @Test
// public void noConnectionReturnsFalseImport() {
// assertDoesNotThrow(() -> {
Expand Down
5 changes: 5 additions & 0 deletions src/test/java/edu/group5/app/control/wrapper/WrapperTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package edu.group5.app.control.wrapper;

public class WrapperTest {

}

0 comments on commit fe39dd0

Please sign in to comment.