r3809 - in trunk: lima-business/src/test/java/org/chorem/lima/business/accountingrules lima-callao/src/main/java/org/chorem/lima/entity
Author: athimel Date: 2014-05-16 17:47:37 +0200 (Fri, 16 May 2014) New Revision: 3809 Url: http://forge.chorem.org/projects/lima/repository/revisions/3809 Log: refs #934 Green bar ! Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/AccountServiceRuleFrTest.java trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ImportServiceRuleFrTest.java trunk/lima-callao/src/main/java/org/chorem/lima/entity/AbstractClosedPeriodicEntryBookTopiaDao.java Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/AccountServiceRuleFrTest.java =================================================================== --- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/AccountServiceRuleFrTest.java 2014-05-16 15:26:11 UTC (rev 3808) +++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/AccountServiceRuleFrTest.java 2014-05-16 15:47:37 UTC (rev 3809) @@ -29,6 +29,7 @@ import org.chorem.lima.entity.Account; import org.chorem.lima.entity.AccountImpl; import org.junit.Assert; +import org.junit.Before; import org.junit.BeforeClass; import org.junit.Ignore; import org.junit.Test; @@ -48,8 +49,8 @@ */ public class AccountServiceRuleFrTest extends AccountServiceImplTest { - @BeforeClass - public static void installFrenchRule() throws Exception { + @Before + public void installFrenchRule() throws Exception { LimaConfig.getInstance().setAccountingRule(FranceAccountingRules.class.getName()); } Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java =================================================================== --- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java 2014-05-16 15:26:11 UTC (rev 3808) +++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java 2014-05-16 15:47:37 UTC (rev 3809) @@ -26,6 +26,7 @@ import org.chorem.lima.business.EntryBookServiceImplTest; import org.chorem.lima.business.LimaConfig; import org.junit.Assert; +import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; @@ -44,8 +45,8 @@ */ public class EntryBookServiceRuleFrTest extends EntryBookServiceImplTest { - @BeforeClass - public static void installFrenchRule() throws Exception { + @Before + public void installFrenchRule() throws Exception { LimaConfig.getInstance().setAccountingRule(FranceAccountingRules.class.getName()); } Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java =================================================================== --- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java 2014-05-16 15:26:11 UTC (rev 3808) +++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java 2014-05-16 15:47:37 UTC (rev 3809) @@ -26,6 +26,7 @@ import org.chorem.lima.business.EntryBookServiceImplTest; import org.chorem.lima.business.LimaConfig; import org.junit.Assert; +import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; @@ -44,8 +45,8 @@ */ public class FinancialPeriodServiceRuleFrTest extends EntryBookServiceImplTest { - @BeforeClass - public static void installFrenchRule() throws Exception { + @Before + public void installFrenchRule() throws Exception { LimaConfig.getInstance().setAccountingRule(FranceAccountingRules.class.getName()); } Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java =================================================================== --- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java 2014-05-16 15:26:11 UTC (rev 3808) +++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java 2014-05-16 15:47:37 UTC (rev 3809) @@ -26,6 +26,7 @@ import org.chorem.lima.business.FinancialTransactionServiceImplTest; import org.chorem.lima.business.LimaConfig; import org.junit.Assert; +import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; @@ -44,8 +45,8 @@ */ public class FinancialTransactionServiceRuleFrTest extends FinancialTransactionServiceImplTest { - @BeforeClass - public static void installFrenchRule() throws Exception { + @Before + public void installFrenchRule() throws Exception { LimaConfig.getInstance().setAccountingRule(FranceAccountingRules.class.getName()); } Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java =================================================================== --- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java 2014-05-16 15:26:11 UTC (rev 3808) +++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java 2014-05-16 15:47:37 UTC (rev 3809) @@ -26,6 +26,7 @@ import org.chorem.lima.business.FiscalPeriodServiceImplTest; import org.chorem.lima.business.LimaConfig; import org.junit.Assert; +import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; @@ -44,8 +45,8 @@ */ public class FiscalPeriodServiceRuleFrTest extends FiscalPeriodServiceImplTest { - @BeforeClass - public static void installFrenchRule() throws Exception { + @Before + public void installFrenchRule() throws Exception { LimaConfig.getInstance().setAccountingRule(FranceAccountingRules.class.getName()); } Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ImportServiceRuleFrTest.java =================================================================== --- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ImportServiceRuleFrTest.java 2014-05-16 15:26:11 UTC (rev 3808) +++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ImportServiceRuleFrTest.java 2014-05-16 15:47:37 UTC (rev 3809) @@ -26,6 +26,7 @@ import org.chorem.lima.business.ImportServiceImplTest; import org.chorem.lima.business.LimaConfig; import org.junit.Assert; +import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; @@ -44,8 +45,8 @@ */ public class ImportServiceRuleFrTest extends ImportServiceImplTest { - @BeforeClass - public static void installFrenchRule() throws Exception { + @Before + public void installFrenchRule() throws Exception { LimaConfig.getInstance().setAccountingRule(FranceAccountingRules.class.getName()); } Modified: trunk/lima-callao/src/main/java/org/chorem/lima/entity/AbstractClosedPeriodicEntryBookTopiaDao.java =================================================================== --- trunk/lima-callao/src/main/java/org/chorem/lima/entity/AbstractClosedPeriodicEntryBookTopiaDao.java 2014-05-16 15:26:11 UTC (rev 3808) +++ trunk/lima-callao/src/main/java/org/chorem/lima/entity/AbstractClosedPeriodicEntryBookTopiaDao.java 2014-05-16 15:47:37 UTC (rev 3809) @@ -53,13 +53,13 @@ /** * Find all ClosedPeriodicEntryBook with common EntryBook. - * + * * @param entryBook entry book property * @return ClosedPeriodicEntryBook list - * @throws TopiaException + * @throws TopiaException */ public List<ClosedPeriodicEntryBook> findAllByEntryBook(EntryBook entryBook) throws TopiaException { - return findAllByEntryBook(entryBook); + return (List<ClosedPeriodicEntryBook>) forProperties(ClosedPeriodicEntryBook.PROPERTY_ENTRY_BOOK, entryBook).findAll(); } /**
participants (1)
-
athimelï¼ users.chorem.org