From: Katja Luther Date: Mon, 22 Jan 2018 12:01:06 +0000 (+0100) Subject: add test for export with unpublished taxa - continued X-Git-Tag: 4.13.0^2~36 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/cdmlib.git/commitdiff_plain/10b665a824362c3d89a773dc353043cebd983eb5 add test for export with unpublished taxa - continued --- diff --git a/cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/cdmLight/out/CdmLightExportTest.java b/cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/cdmLight/out/CdmLightExportTest.java index 596f015cb8..fd60d32725 100755 --- a/cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/cdmLight/out/CdmLightExportTest.java +++ b/cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/cdmLight/out/CdmLightExportTest.java @@ -269,13 +269,13 @@ public class CdmLightExportTest extends CdmTransactionalIntegrationTest{ count ++; } Assert.assertTrue("There should be 4 references", count == 5); + try{ stream = new ByteArrayInputStream(data.get(CdmLightExportTable.SYNONYM.getTableName())); - reader = new BufferedReader(new InputStreamReader(stream, Charset.forName("UTF-8"))); - count = 0; - while ((line = reader.readLine()) != null) { - count ++; + Assert.fail("There should not be a synonym table, because the only synonym is not public."); + }catch(NullPointerException e){ + } - Assert.assertTrue("There should be 1 synonym", count == 2); + } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace();