[Japi-cvs] SF.net SVN: japi: [239] libs/argparser/trunk/src/test/net/sf/japi/io/args/ ArgParserTest
Status: Beta
Brought to you by:
christianhujer
From: <chr...@us...> - 2006-11-29 22:26:09
|
Revision: 239 http://svn.sourceforge.net/japi/?rev=239&view=rev Author: christianhujer Date: 2006-11-29 14:26:05 -0800 (Wed, 29 Nov 2006) Log Message: ----------- Removed warnings. Modified Paths: -------------- libs/argparser/trunk/src/test/net/sf/japi/io/args/ArgParserTest.java Modified: libs/argparser/trunk/src/test/net/sf/japi/io/args/ArgParserTest.java =================================================================== --- libs/argparser/trunk/src/test/net/sf/japi/io/args/ArgParserTest.java 2006-11-29 21:17:00 UTC (rev 238) +++ libs/argparser/trunk/src/test/net/sf/japi/io/args/ArgParserTest.java 2006-11-29 22:26:05 UTC (rev 239) @@ -11,6 +11,7 @@ import java.util.List; import org.junit.Test; import org.junit.Assert; +import org.jetbrains.annotations.NotNull; /** * Test for {@link ArgParser}. @@ -35,7 +36,7 @@ /** {@inheritDoc} */ @SuppressWarnings({"InstanceMethodNamingConvention"}) - public int run(final List<String> args) { + public int run(@NotNull final List<String> args) { runCalled = true; this.args = args; return 0; @@ -87,10 +88,10 @@ /** * Tests whether supplying a required option with argument in short form works. - * @throws RequiredOptionsMissingException - * @throws TerminalException - * @throws UnknownOptionException - * @throws MissingArgumentException + * @throws RequiredOptionsMissingException (unexpected) + * @throws TerminalException (unexpected) + * @throws UnknownOptionException (unexpected) + * @throws MissingArgumentException (unexpected) */ @Test public void testCommandWithShortOption() throws RequiredOptionsMissingException, MissingArgumentException, TerminalException, UnknownOptionException { @@ -103,10 +104,10 @@ /** * Tests whether supplying a required option with argument in long form with separate argument works. - * @throws RequiredOptionsMissingException - * @throws TerminalException - * @throws UnknownOptionException - * @throws MissingArgumentException + * @throws RequiredOptionsMissingException (unexpected) + * @throws TerminalException (unexpected) + * @throws UnknownOptionException (unexpected) + * @throws MissingArgumentException (unexpected) */ @Test public void testCommandWithLongOption() throws RequiredOptionsMissingException, MissingArgumentException, TerminalException, UnknownOptionException { @@ -119,10 +120,10 @@ /** * Tests whether supplying a required option with argument in long form with integrated argument works. - * @throws RequiredOptionsMissingException - * @throws TerminalException - * @throws UnknownOptionException - * @throws MissingArgumentException + * @throws RequiredOptionsMissingException (unexpected) + * @throws TerminalException (unexpected) + * @throws UnknownOptionException (unexpected) + * @throws MissingArgumentException (unexpected) */ @Test public void testCommandWithLongOptEq() throws RequiredOptionsMissingException, MissingArgumentException, TerminalException, UnknownOptionException { @@ -135,10 +136,10 @@ /** * Tests whether it's detected that a required option is missing. - * @throws RequiredOptionsMissingException - * @throws TerminalException - * @throws UnknownOptionException - * @throws MissingArgumentException + * @throws RequiredOptionsMissingException (expected) + * @throws TerminalException (unexpected) + * @throws UnknownOptionException (unexpected) + * @throws MissingArgumentException (unexpected) */ @Test(expected=RequiredOptionsMissingException.class) public void testCommandRequiredOptionMissing() throws RequiredOptionsMissingException, TerminalException, UnknownOptionException, MissingArgumentException { @@ -152,10 +153,10 @@ /** * Tests whether it's detected that an unknown option was given. - * @throws RequiredOptionsMissingException - * @throws TerminalException - * @throws UnknownOptionException - * @throws MissingArgumentException + * @throws RequiredOptionsMissingException (unexpected) + * @throws TerminalException (unexpected) + * @throws UnknownOptionException (expected) + * @throws MissingArgumentException (unexpected) */ @Test(expected=UnknownOptionException.class) public void testCommandUnknownOption() throws RequiredOptionsMissingException, TerminalException, UnknownOptionException, MissingArgumentException { @@ -169,10 +170,10 @@ /** * Tests whether it's detected that the argument of an option that requires an argument is missing. - * @throws RequiredOptionsMissingException - * @throws TerminalException - * @throws UnknownOptionException - * @throws MissingArgumentException + * @throws RequiredOptionsMissingException (unexpected) + * @throws TerminalException (unexpected) + * @throws UnknownOptionException (unexpected) + * @throws MissingArgumentException (expected) */ @Test(expected=MissingArgumentException.class) public void testCommandMissingArgument() throws RequiredOptionsMissingException, TerminalException, UnknownOptionException, MissingArgumentException { @@ -186,10 +187,10 @@ /** * Tests whether specifying an option twice works. - * @throws RequiredOptionsMissingException - * @throws TerminalException - * @throws UnknownOptionException - * @throws MissingArgumentException + * @throws RequiredOptionsMissingException (unexpected) + * @throws TerminalException (unexpected) + * @throws UnknownOptionException (unexpected) + * @throws MissingArgumentException (unexpected) */ @Test public void testCommandDuplicateOption() throws RequiredOptionsMissingException, MissingArgumentException, TerminalException, UnknownOptionException { @@ -202,10 +203,10 @@ /** * Tests whether help works. - * @throws RequiredOptionsMissingException - * @throws TerminalException - * @throws UnknownOptionException - * @throws MissingArgumentException + * @throws RequiredOptionsMissingException (unexpected) + * @throws TerminalException (expected) + * @throws UnknownOptionException (unexpected) + * @throws MissingArgumentException (unexpected) */ @Test(expected = TerminalException.class) public void testHelp() throws RequiredOptionsMissingException, MissingArgumentException, TerminalException, UnknownOptionException { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |