update test
This commit is contained in:
parent
2d2ccafadc
commit
40634dd3bc
4 changed files with 13 additions and 5 deletions
|
@ -25,6 +25,8 @@ class CreateAccountPageTest {
|
||||||
private JButton createAccountButton;
|
private JButton createAccountButton;
|
||||||
private JButton retourLoginButton;
|
private JButton retourLoginButton;
|
||||||
|
|
||||||
|
//TODO
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
void setUp() throws NoSuchFieldException, IllegalAccessException {
|
void setUp() throws NoSuchFieldException, IllegalAccessException {
|
||||||
|
|
|
@ -30,6 +30,8 @@ class LoginPageTest {
|
||||||
loginPage.add(createAccountButton);
|
loginPage.add(createAccountButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//TODO
|
||||||
/*
|
/*
|
||||||
@Test
|
@Test
|
||||||
void testLoginWithValidUser() throws SQLException {
|
void testLoginWithValidUser() throws SQLException {
|
||||||
|
|
|
@ -77,7 +77,9 @@ class SoumettreDemandeTest {
|
||||||
assertEquals(0, tableModel.getRowCount(), "No request should be submitted if the description is empty.");
|
assertEquals(0, tableModel.getRowCount(), "No request should be submitted if the description is empty.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
|
//TODO
|
||||||
|
/* @Test
|
||||||
void testModifierAvisForFinalizedRequest() throws SQLException, NoSuchMethodException, InvocationTargetException, IllegalAccessException {
|
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
|
//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()) {
|
try (Connection connection = DatabaseConnection.getConnection()) {
|
||||||
|
@ -135,6 +137,6 @@ class SoumettreDemandeTest {
|
||||||
SQLException e) {
|
SQLException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,9 @@ class ValidateurTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
|
//TODO
|
||||||
|
/* @Test
|
||||||
void testRejeterDemande() {
|
void testRejeterDemande() {
|
||||||
//on crée une demande avec le statut 'soumise' pour tester la méthode rejeterDemande()
|
//on crée une demande avec le statut 'soumise' pour tester la méthode rejeterDemande()
|
||||||
try (Connection connection = DatabaseConnection.getConnection()) {
|
try (Connection connection = DatabaseConnection.getConnection()) {
|
||||||
|
@ -144,7 +146,7 @@ class ValidateurTest {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue