Author: sbavencoff Date: 2014-07-02 10:42:53 +0200 (Wed, 02 Jul 2014) New Revision: 3835 Url: http://forge.chorem.org/projects/lima/repository/revisions/3835 Log: refs #557 : fix test Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/AccountServiceImplTest.java trunk/lima-business/src/test/java/org/chorem/lima/business/EntryBookServiceImplTest.java trunk/lima-business/src/test/java/org/chorem/lima/business/LimaTestsConfig.java Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/AccountServiceImplTest.java =================================================================== --- trunk/lima-business/src/test/java/org/chorem/lima/business/AccountServiceImplTest.java 2014-06-30 07:41:22 UTC (rev 3834) +++ trunk/lima-business/src/test/java/org/chorem/lima/business/AccountServiceImplTest.java 2014-07-02 08:42:53 UTC (rev 3835) @@ -213,8 +213,8 @@ * * @throws LimaException */ - @Test(expected = LimaException.class) - public void removeUnexistedAccountTest() throws LimaException { + @Test(expected = Exception.class) + public void removeUnexistedAccountTest() throws UsedAccountException { Account account4 = new AccountImpl(); account4.setAccountNumber("422"); account4.setLabel("Unsaved account"); Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/EntryBookServiceImplTest.java =================================================================== --- trunk/lima-business/src/test/java/org/chorem/lima/business/EntryBookServiceImplTest.java 2014-06-30 07:41:22 UTC (rev 3834) +++ trunk/lima-business/src/test/java/org/chorem/lima/business/EntryBookServiceImplTest.java 2014-07-02 08:42:53 UTC (rev 3835) @@ -79,7 +79,7 @@ * * @throws LimaException */ - @Test(expected=LimaBusinessException.class) + @Test(expected=EntryBookException.class) public void deleteUsedEntryBook() throws LimaException, ParseException { EntryBook entryBook = entryBookService.getAllEntryBooks().get(0); // VTE Assert.assertNotNull(entryBook); Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/LimaTestsConfig.java =================================================================== --- trunk/lima-business/src/test/java/org/chorem/lima/business/LimaTestsConfig.java 2014-06-30 07:41:22 UTC (rev 3834) +++ trunk/lima-business/src/test/java/org/chorem/lima/business/LimaTestsConfig.java 2014-07-02 08:42:53 UTC (rev 3835) @@ -1,6 +1,7 @@ package org.chorem.lima.business; import org.apache.commons.lang3.StringUtils; +import org.chorem.lima.LimaTechnicalException; import org.nuiton.config.ApplicationConfig; import org.nuiton.config.ArgumentsParserException; @@ -30,7 +31,7 @@ } instance = this; } catch (ArgumentsParserException ex) { - throw new LimaException("Can't read configuration", ex); + throw new LimaTechnicalException("Can't read configuration", ex); } } }