r3898 - trunk/lima-business/src/test/java/org/chorem/lima/business
Author: dcosse Date: 2014-08-05 18:06:37 +0200 (Tue, 05 Aug 2014) New Revision: 3898 Url: http://forge.chorem.org/projects/lima/repository/revisions/3898 Log: refs #1032 correction des tests Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/ImportExportServiceTest.java Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/ImportExportServiceTest.java =================================================================== --- trunk/lima-business/src/test/java/org/chorem/lima/business/ImportExportServiceTest.java 2014-08-05 15:56:52 UTC (rev 3897) +++ trunk/lima-business/src/test/java/org/chorem/lima/business/ImportExportServiceTest.java 2014-08-05 16:06:37 UTC (rev 3898) @@ -89,7 +89,7 @@ // make sure all account have been created Assert.assertEquals(nbEntities, accountService.getAllAccounts().size()); Assert.assertEquals(nbEntities, result.getImportResults().get(0).getNbCreated()); - Assert.assertTrue(result.getImportResults().get(0).getAllExceptionsByLine().isEmpty()); + Assert.assertNull(result.getImportResults().get(0).getAllExceptionsByLine()); } finally { IOUtils.closeQuietly(contentStream); } @@ -127,7 +127,7 @@ Assert.assertEquals(nbEntities, entryBookService.getAllEntryBooks().size()); Assert.assertEquals(nbEntities, result.getNbCreated()); - Assert.assertTrue(result.getAllExceptionsByLine().isEmpty()); + Assert.assertNull(result.getAllExceptionsByLine()); } @Test @@ -185,7 +185,7 @@ Assert.assertEquals(nbEntities, entries.size()); Assert.assertEquals(nbEntities, result.getNbCreated()); - Assert.assertTrue(result.getAllExceptionsByLine().isEmpty()); + Assert.assertNull(result.getAllExceptionsByLine()); } @Test @@ -218,7 +218,7 @@ Assert.assertEquals(nbFiscalPeriods, fiscalPeriodService.getAllFiscalPeriods().size()); Assert.assertEquals(nbFiscalPeriods, result.getNbCreated()); - Assert.assertTrue(result.getAllExceptionsByLine().isEmpty()); + Assert.assertNull(result.getAllExceptionsByLine()); } // @Test @@ -248,7 +248,7 @@ // ImportResult importResult = importResults.get(i); // log.info(imported[i] +": created:"+importResult.getNbCreated() + " updated:" + importResult.getNbUpdated() + " ignoded:" + importResult.getNbIgnored()); // Assert.assertTrue(importResult.getNbCreated()>0); -// Assert.assertTrue(importResult.getAllExceptionsByLine().isEmpty()); +// Assert.assertNull(importResult.getAllExceptionsByLine()); // } // } @@ -351,7 +351,7 @@ result = importService.importFinancialStatementsAsCSV(bcr_developed).getImportResults().get(0); - Assert.assertTrue(result.getAllExceptionsByLine().isEmpty()); + Assert.assertNull(result.getAllExceptionsByLine()); Assert.assertEquals(162, result.getNbCreated()); Assert.assertEquals(162, financialStatementService.getAllFinancialStatements().size()); FinancialStatement actifImmobiliseStatement = financialStatementService.getFinancialStatementByLabel("ACTIF IMMOBILISÉ"); @@ -372,7 +372,7 @@ result = importService.importVATStatementsAsCSV(bcr_developed).getImportResults().get(0); - Assert.assertTrue(result.getAllExceptionsByLine().isEmpty()); + Assert.assertNull(result.getAllExceptionsByLine()); Assert.assertEquals(55, result.getNbCreated()); Assert.assertEquals(55, vatStatementService.getAllVatStatements().size()); } @@ -411,7 +411,7 @@ InputStream entriesStream = ImportExportServiceTest.class.getResourceAsStream("/ebp/ecritures.txt"); String entriesData = IOUtils.toString(entriesStream, "ISO-8859-1"); ImportResult result = importService.importEntriesFromEbp(entriesData).getImportResults().get(0); - Assert.assertTrue(result.getAllExceptionsByLine().isEmpty()); + Assert.assertNull(result.getAllExceptionsByLine()); Assert.assertEquals(28, result.getNbCreated()); entriesStream.close(); @@ -510,7 +510,7 @@ Assert.assertEquals(nbEntities, entries.size()); Assert.assertEquals(nbEntities, result.getNbCreated()); - Assert.assertTrue(result.getAllExceptionsByLine().isEmpty()); + Assert.assertNull(result.getAllExceptionsByLine()); for (Entry entry : entries) { Assert.assertTrue(42.0 == entry.getAmount().doubleValue()); }
participants (1)
-
dcosse@users.chorem.org