BadCaseTaskTest
|
14%
successful |
Failed tests
Assert an IllegalArgumentException when calling a non-Existing Task
hhn.temp.project.expections.SQLNoConectionException: Cant connect to the database (Could not create connection to database server. Attempted reconnect 3 times. Giving up.) at app//hhn.temp.project.provider.MySql.connect(MySql.java:35) at app//hhn.temp.project.TaskManager.<init>(TaskManager.java:19) at app//project.BadCaseTaskTest.assertExceptionOnCallingANonextistingTask(BadCaseTaskTest.java:85) at java.base@17.0.16/java.lang.reflect.Method.invoke(Method.java:569) at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
Assert an IllegalArgumentException when you create a new Task with no or wrong Name, Description
hhn.temp.project.expections.SQLNoConectionException: Cant connect to the database (Could not create connection to database server. Attempted reconnect 3 times. Giving up.) at app//hhn.temp.project.provider.MySql.connect(MySql.java:35) at app//hhn.temp.project.TaskManager.<init>(TaskManager.java:19) at app//project.BadCaseTaskTest.assertExceptionOnCreateNewTask(BadCaseTaskTest.java:41) at java.base@17.0.16/java.lang.reflect.Method.invoke(Method.java:569) at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
Assert an IllegalArgumentException when you create a new Task with the same Name of a exits Task
hhn.temp.project.expections.SQLNoConectionException: Cant connect to the database (Could not create connection to database server. Attempted reconnect 3 times. Giving up.) at app//hhn.temp.project.provider.MySql.connect(MySql.java:35) at app//hhn.temp.project.TaskManager.<init>(TaskManager.java:19) at app//project.BadCaseTaskTest.assertExceptionOnCreateNewTaskWithExitsName(BadCaseTaskTest.java:56) at java.base@17.0.16/java.lang.reflect.Method.invoke(Method.java:569) at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
Assert an IllegalArgumentException when delete a existing Task with wrong arguments
hhn.temp.project.expections.SQLNoConectionException: Cant connect to the database (Could not create connection to database server. Attempted reconnect 3 times. Giving up.) at app//hhn.temp.project.provider.MySql.connect(MySql.java:35) at app//hhn.temp.project.TaskManager.<init>(TaskManager.java:19) at app//project.BadCaseTaskTest.assertExceptionOnDeletingTask(BadCaseTaskTest.java:101) at java.base@17.0.16/java.lang.reflect.Method.invoke(Method.java:569) at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
Assert an IllegalArgumentException when you edit a exits Task
hhn.temp.project.expections.SQLNoConectionException: Cant connect to the database (Could not create connection to database server. Attempted reconnect 3 times. Giving up.) at app//hhn.temp.project.provider.MySql.connect(MySql.java:35) at app//hhn.temp.project.TaskManager.<init>(TaskManager.java:19) at app//project.BadCaseTaskTest.assertExceptionOnEditATask(BadCaseTaskTest.java:69) at java.base@17.0.16/java.lang.reflect.Method.invoke(Method.java:569) at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
Get a Exeption by setWorker and getWorker
hhn.temp.project.expections.SQLNoConectionException: Cant connect to the database (Could not create connection to database server. Attempted reconnect 3 times. Giving up.) at app//hhn.temp.project.provider.MySql.connect(MySql.java:35) at app//hhn.temp.project.TaskManager.<init>(TaskManager.java:19) at app//project.BadCaseTaskTest.assertExeptionBySetAndGetAuthorOfATask(BadCaseTaskTest.java:118) at java.base@17.0.16/java.lang.reflect.Method.invoke(Method.java:569) at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base@17.0.16/java.util.ArrayList.forEach(ArrayList.java:1511)
Tests
| Test | Method name | Duration | Result |
|---|---|---|---|
| Create a new TaskManager and test Connecton | assertCreateNewTaskManager() | 4.103s | passed |
| Assert an IllegalArgumentException when calling a non-Existing Task | assertExceptionOnCallingANonextistingTask() | 4.381s | failed |
| Assert an IllegalArgumentException when you create a new Task with no or wrong Name, Description | assertExceptionOnCreateNewTask() | 4.102s | failed |
| Assert an IllegalArgumentException when you create a new Task with the same Name of a exits Task | assertExceptionOnCreateNewTaskWithExitsName() | 4.368s | failed |
| Assert an IllegalArgumentException when delete a existing Task with wrong arguments | assertExceptionOnDeletingTask() | 4.204s | failed |
| Assert an IllegalArgumentException when you edit a exits Task | assertExceptionOnEditATask() | 5.676s | failed |
| Get a Exeption by setWorker and getWorker | assertExeptionBySetAndGetAuthorOfATask() | 4.155s | failed |