Project

General

Profile

Revision d18384a7

IDd18384a78481f144cb228e1d1fc140fe6565c36a
Parent 2b4d0842
Child e741a77e

Added by Katja Luther over 2 years ago

fix test as cdm light creates all tables now

View differences:

cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/cdmLight/out/CdmLightExportTest.java
268 268
                Assert.assertTrue("There should be 5 references", count == 6);
269 269
                try{
270 270
                    stream = new ByteArrayInputStream(data.get(CdmLightExportTable.SYNONYM.getTableName()));
271
                    Assert.fail("There should not be a synonym table, because the only synonym is not public.");
271
                    // now there are always all tables also if empty
272
                    reader = new BufferedReader(new InputStreamReader(stream, Charset.forName("UTF-8")));
273
                    count = 0;
274
                    while ((line = reader.readLine()) != null) {
275
                        count ++;
276
                    }
277
                    Assert.assertTrue("There should be 0 synomyms", count == 1);
278
//                    Assert.fail("There should not be a synonym table, because the only synonym is not public.");
272 279
                }catch(NullPointerException e){
273 280
                    //OK, should be thrown
274 281
                }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)