You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@opennlp.apache.org by "Jörn Kottmann (JIRA)" <ji...@apache.org> on 2011/01/24 11:55:58 UTC

[jira] Resolved: (OPENNLP-41) Unit test ArgumentParserTest.testSimpleArgumentsUsage can ocasionally fail

     [ https://issues.apache.org/jira/browse/OPENNLP-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jörn Kottmann resolved OPENNLP-41.
----------------------------------

    Resolution: Fixed

Problem should be fixed now, can you please test and close it William.

> Unit test ArgumentParserTest.testSimpleArgumentsUsage can ocasionally fail
> --------------------------------------------------------------------------
>
>                 Key: OPENNLP-41
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-41
>             Project: OpenNLP
>          Issue Type: Bug
>          Components: Build, Packaging and Test
>    Affects Versions: tools-1.5.1-incubating
>            Reporter: William Colen
>            Assignee: Jörn Kottmann
>             Fix For: tools-1.5.1-incubating
>
>
> The test opennlp.tools.cmdline.ArgumentParserTest.testSimpleArgumentsUsage() is failing here. Is it happening to anyone else?
> I checked the ArgumentParser class. The method createUsage(Class<T> argProxyInterface) works by getting the methods of the argProxyInterface class using the getMethods() method.
> The javadoc of getMethods() method says: "... The elements in the array returned are not sorted and are not in any particular order. ...".
> So we can't expect the usage string to be the same to everybody. To me it is "[-iterations num] [-alphaNumOpt true|false] -encoding charset", but the expected is "-encoding charset [-iterations num] [-alphaNumOpt true|false]", so my build fails.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.