add test for export with unpublished taxa - continued
authorKatja Luther <k.luther@bgbm.org>
Mon, 22 Jan 2018 12:01:06 +0000 (13:01 +0100)
committerKatja Luther <k.luther@bgbm.org>
Mon, 22 Jan 2018 12:02:22 +0000 (13:02 +0100)
cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/cdmLight/out/CdmLightExportTest.java

index 596f015cb8becf17da4183ff1ac665cfb18a8b84..fd60d3272544ffb71ba1e96df926efca65f7e90d 100755 (executable)
@@ -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();