From: <eg...@us...> - 2008-06-25 15:22:22
|
Revision: 11440 http://cdk.svn.sourceforge.net/cdk/?rev=11440&view=rev Author: egonw Date: 2008-06-25 08:20:48 -0700 (Wed, 25 Jun 2008) Log Message: ----------- It is custom to return new String[0] too Modified Paths: -------------- cdk/trunk/src/test/org/openscience/cdk/io/formats/ResourceFormatTest.java Modified: cdk/trunk/src/test/org/openscience/cdk/io/formats/ResourceFormatTest.java =================================================================== --- cdk/trunk/src/test/org/openscience/cdk/io/formats/ResourceFormatTest.java 2008-06-25 14:53:30 UTC (rev 11439) +++ cdk/trunk/src/test/org/openscience/cdk/io/formats/ResourceFormatTest.java 2008-06-25 15:20:48 UTC (rev 11440) @@ -60,7 +60,7 @@ @Test public void testGetPreferredNameExtension() { if (resourceFormat.getPreferredNameExtension() == null) { - if (resourceFormat.getNameExtensions() == null) { + if (resourceFormat.getNameExtensions() == null || resourceFormat.getNameExtensions().length == 0) { // Seems to be current practice // FIXME: needs to be discussed } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |