This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository lima. See https://gitlab.nuiton.org/chorem/lima.git commit b698a649c2b4b1f598ed1bc92cf9db2c963f32cb Author: David Cossé <cosse@codelutin.com> Date: Fri Jul 8 19:02:14 2016 +0200 refs #1174 ajout d'une exception pour gérer le cas ou l'on essaye de supprimer un compte qui 'existe pas --- .../test/java/org/chorem/lima/business/AccountServiceImplTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lima-business/src/test/java/org/chorem/lima/business/AccountServiceImplTest.java b/lima-business/src/test/java/org/chorem/lima/business/AccountServiceImplTest.java index 9cf9a7a..26df6ff 100644 --- a/lima-business/src/test/java/org/chorem/lima/business/AccountServiceImplTest.java +++ b/lima-business/src/test/java/org/chorem/lima/business/AccountServiceImplTest.java @@ -27,6 +27,7 @@ import org.chorem.lima.business.exceptions.InvalidAccountNumberException; import org.chorem.lima.business.exceptions.LimaException; import org.chorem.lima.business.exceptions.NotAllowedLabelException; import org.chorem.lima.business.exceptions.NotNumberAccountNumberException; +import org.chorem.lima.business.exceptions.UnexistingAccount; import org.chorem.lima.business.exceptions.UsedAccountException; import org.chorem.lima.entity.Account; import org.chorem.lima.entity.AccountImpl; @@ -345,8 +346,8 @@ public class AccountServiceImplTest extends AbstractLimaTest { * * @throws UsedAccountException */ - @Test(expected = Exception.class) - public void removeUnexistedAccountTest() throws UsedAccountException { + @Test(expected = UnexistingAccount.class) + public void removeUnexistedAccountTest() throws UsedAccountException, UnexistingAccount { Account account4 = new AccountImpl(); account4.setAccountNumber("422"); account4.setLabel("Unsaved account"); -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.