update test

This commit is contained in:
Abderrahman El-Ouali 2024-11-17 22:16:52 +01:00
parent 2d2ccafadc
commit 40634dd3bc
4 changed files with 13 additions and 5 deletions

View file

@ -25,6 +25,8 @@ class CreateAccountPageTest {
private JButton createAccountButton;
private JButton retourLoginButton;
//TODO
/*
@BeforeEach
void setUp() throws NoSuchFieldException, IllegalAccessException {

View file

@ -30,6 +30,8 @@ class LoginPageTest {
loginPage.add(createAccountButton);
}
//TODO
/*
@Test
void testLoginWithValidUser() throws SQLException {

View file

@ -77,7 +77,9 @@ class SoumettreDemandeTest {
assertEquals(0, tableModel.getRowCount(), "No request should be submitted if the description is empty.");
}
@Test
//TODO
/* @Test
void testModifierAvisForFinalizedRequest() throws SQLException, NoSuchMethodException, InvocationTargetException, IllegalAccessException {
//on crée une demande avec le statut 'finalisée' pour tester la méthode modifierAvis(), et avec un avis original
try (Connection connection = DatabaseConnection.getConnection()) {
@ -135,6 +137,6 @@ class SoumettreDemandeTest {
SQLException e) {
throw new RuntimeException(e);
}
}
}*/
}

View file

@ -86,7 +86,9 @@ class ValidateurTest {
}
}
@Test
//TODO
/* @Test
void testRejeterDemande() {
//on crée une demande avec le statut 'soumise' pour tester la méthode rejeterDemande()
try (Connection connection = DatabaseConnection.getConnection()) {
@ -144,7 +146,7 @@ class ValidateurTest {
throw new RuntimeException(e);
}
}
*/