[Japi-cvs] SF.net SVN: japi: [553] tools/string2bytes/trunk/src/test/net/sf/japi/ string2bytes
Status: Beta
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2007-07-15 10:32:08
|
Revision: 553
http://svn.sourceforge.net/japi/?rev=553&view=rev
Author: christianhujer
Date: 2007-07-15 03:32:03 -0700 (Sun, 15 Jul 2007)
Log Message:
-----------
Improved test documentation.
Modified Paths:
--------------
libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/AbstractConverterTest.java
libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/ConverterRegistryTest.java
libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/IntegerConverterTest.java
libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/NoConverterFoundExceptionTest.java
libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/StringConverterTest.java
libs/swing-action/trunk/src/test/net/sf/japi/swing/ActionFactoryTest.java
libs/swing-action/trunk/src/test/net/sf/japi/swing/ReflectionActionTest.java
tools/cstyle/trunk/src/test/net/sf/japi/cstyle/CStyleTest.java
tools/string2bytes/trunk/src/test/net/sf/japi/string2bytes/CodecStepTest.java
Modified: libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/AbstractConverterTest.java
===================================================================
--- libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/AbstractConverterTest.java 2007-07-15 10:26:38 UTC (rev 552)
+++ libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/AbstractConverterTest.java 2007-07-15 10:32:03 UTC (rev 553)
@@ -52,7 +52,7 @@
}
/**
- * Tests whether creating a Converter works.
+ * Tests that creating a Converter works.
* @throws Exception (unexpected)
*/
public void testAbstractConverter() throws Exception {
@@ -60,7 +60,7 @@
}
/**
- * Tests whether convert throws a NullPointerException if invoked with <code>null</code>.
+ * Tests that convert throws a NullPointerException if invoked with <code>null</code>.
* @throws Exception In case of test problems.
*/
@SuppressWarnings({"ConstantConditions"})
@@ -76,7 +76,7 @@
}
/**
- * Tests whether getting the target class works.
+ * Tests that getting the target class works.
* @throws Exception In case of test problems.
*/
@Test
@@ -85,7 +85,7 @@
}
/**
- * Tests whether the testling has a proper description for the default locale.
+ * Tests that the testling has a proper description for the default locale.
* @throws Exception In case of unexpected errors.
*/
@Test
@@ -97,7 +97,7 @@
}
/**
- * Tests whether the testling has a proper display name.
+ * Tests that the testling has a proper display name.
* @throws Exception In case of unexpected errors.
*/
@Test
Modified: libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/ConverterRegistryTest.java
===================================================================
--- libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/ConverterRegistryTest.java 2007-07-15 10:26:38 UTC (rev 552)
+++ libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/ConverterRegistryTest.java 2007-07-15 10:32:03 UTC (rev 553)
@@ -19,15 +19,15 @@
package test.net.sf.japi.io.args.converter;
+import java.io.File;
+import java.util.Locale;
+import net.sf.japi.io.args.converter.ConstructorConverter;
+import net.sf.japi.io.args.converter.Converter;
import net.sf.japi.io.args.converter.ConverterRegistry;
-import net.sf.japi.io.args.converter.Converter;
import net.sf.japi.io.args.converter.NoConverterFoundException;
-import net.sf.japi.io.args.converter.ConstructorConverter;
+import org.jetbrains.annotations.NotNull;
+import org.junit.Assert;
import org.junit.Test;
-import org.junit.Assert;
-import org.jetbrains.annotations.NotNull;
-import java.util.Locale;
-import java.io.File;
/**
* Test for {@link ConverterRegistry}.
@@ -46,7 +46,7 @@
}
/**
- * Tests whether {@link ConverterRegistry#getInstance()} works.
+ * Tests that {@link ConverterRegistry#getInstance()} works.
* @throws Exception (unexpected)
*/
@Test
@@ -56,7 +56,7 @@
}
/**
- * Tests whether {@link ConverterRegistry#getConverter(Class)} works.
+ * Tests that {@link ConverterRegistry#getConverter(Class)} works.
* @throws Exception (unexpected)
*/
@Test
@@ -68,7 +68,7 @@
}
/**
- * Tests whether {@link ConverterRegistry#register(Converter)} works.
+ * Tests that {@link ConverterRegistry#register(Converter)} works.
* @throws Exception (unexpected)
*/
@Test
@@ -77,7 +77,7 @@
}
/**
- * Tests whether {@link ConverterRegistry#convert(Class, String)} and {@link ConverterRegistry#convert(Class, Locale, String)} work.
+ * Tests that {@link ConverterRegistry#convert(Class, String)} and {@link ConverterRegistry#convert(Class, Locale, String)} work.
* @throws Exception (unexpected)
*/
@Test
@@ -87,7 +87,7 @@
}
/**
- * Tests whether {@link ConverterRegistry#convert(Class, String)} will automatically create a converter with a constructor.
+ * Tests that {@link ConverterRegistry#convert(Class, String)} will automatically create a converter with a constructor.
* @throws Exception (unexpected)
*/
@Test
@@ -97,7 +97,7 @@
}
/**
- * Tests whether {@link ConverterRegistry#convert(Class, String)} will throw the appropriate exception if no constructor converter is available.
+ * Tests that {@link ConverterRegistry#convert(Class, String)} will throw the appropriate exception if no constructor converter is available.
* @throws Exception (unexpected)
*/
@Test(expected = NoConverterFoundException.class)
@@ -106,7 +106,7 @@
}
/**
- * Tests whether {@link ConverterRegistry#convert(Class, Locale, String)} will throw the appropriate exception if no constructor converter is available.
+ * Tests that {@link ConverterRegistry#convert(Class, Locale, String)} will throw the appropriate exception if no constructor converter is available.
* @throws Exception (unexpected)
*/
@Test(expected = NoConverterFoundException.class)
@@ -115,7 +115,7 @@
}
/**
- * Tests whether {@link ConverterRegistry#getConstructorConverter(Class)} returns appropriate values.
+ * Tests that {@link ConverterRegistry#getConstructorConverter(Class)} returns appropriate values.
* @throws Exception (unexpected)
*/
@Test
Modified: libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/IntegerConverterTest.java
===================================================================
--- libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/IntegerConverterTest.java 2007-07-15 10:26:38 UTC (rev 552)
+++ libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/IntegerConverterTest.java 2007-07-15 10:32:03 UTC (rev 553)
@@ -38,7 +38,7 @@
}
/**
- * Tests whether instanciating a IntegerConverter works.
+ * Tests that instanciating a IntegerConverter works.
* @throws Exception (unexpected)
*/
@Test
@@ -47,7 +47,7 @@
}
/**
- * Tests whether converting an arbitrary text throws a NumberFormatException.
+ * Tests that converting an arbitrary text throws a NumberFormatException.
* @throws NumberFormatException Expected exception that's thrown if the test case is successful.
* @throws Exception In case of unexpected errors.
*/
@@ -57,7 +57,7 @@
}
/**
- * Tests whether converting decimal (10-base) integer numbers works correclty.
+ * Tests that converting decimal (10-base) integer numbers works correclty.
* @throws Exception In case of unexpected errors.
*/
@Test
@@ -68,7 +68,7 @@
}
/**
- * Tests whether converting hexadecimal (16-base) integer numbers works correctly.
+ * Tests that converting hexadecimal (16-base) integer numbers works correctly.
* @throws Exception In case of unexpected errors.
*/
@Test
@@ -79,7 +79,7 @@
}
/**
- * Tests whether converting octal (8-base) integer numbers works correctly.
+ * Tests that converting octal (8-base) integer numbers works correctly.
* @throws Exception In case of unexpected errors.
*/
@Test
Modified: libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/NoConverterFoundExceptionTest.java
===================================================================
--- libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/NoConverterFoundExceptionTest.java 2007-07-15 10:26:38 UTC (rev 552)
+++ libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/NoConverterFoundExceptionTest.java 2007-07-15 10:32:03 UTC (rev 553)
@@ -30,7 +30,7 @@
public class NoConverterFoundExceptionTest {
/**
- * Tests whether the target type is stored correctly.
+ * Tests that the target type is stored correctly.
* @throws Exception (unexpected)
*/
@Test
@@ -40,7 +40,7 @@
}
/**
- * Tests whether the target type is stored correctly.
+ * Tests that the target type is stored correctly.
* @throws Exception (unexpected)
*/
@Test
Modified: libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/StringConverterTest.java
===================================================================
--- libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/StringConverterTest.java 2007-07-15 10:26:38 UTC (rev 552)
+++ libs/argparser/trunk/src/test/net/sf/japi/io/args/converter/StringConverterTest.java 2007-07-15 10:32:03 UTC (rev 553)
@@ -38,7 +38,7 @@
}
/**
- * Tests whether instanciating a StringConverter works.
+ * Tests that instanciating a StringConverter works.
* @throws Exception (unexpected)
*/
@Test
@@ -47,7 +47,7 @@
}
/**
- * Tests whether {@link StringConverter} has a public default constructor.
+ * Tests that {@link StringConverter} has a public default constructor.
* @throws Exception In case of unexpected errors.
*/
@Test
Modified: libs/swing-action/trunk/src/test/net/sf/japi/swing/ActionFactoryTest.java
===================================================================
--- libs/swing-action/trunk/src/test/net/sf/japi/swing/ActionFactoryTest.java 2007-07-15 10:26:38 UTC (rev 552)
+++ libs/swing-action/trunk/src/test/net/sf/japi/swing/ActionFactoryTest.java 2007-07-15 10:32:03 UTC (rev 553)
@@ -36,7 +36,7 @@
public class ActionFactoryTest {
/**
- * Tests whether {@link ActionFactory#find(JMenuBar, Action)} works.
+ * Tests that {@link ActionFactory#find(JMenuBar, Action)} works.
* @throws Exception (unexpected)
*/
@Test(expected = NullPointerException.class)
@@ -46,7 +46,7 @@
}
/**
- * Tests whether {@link ActionFactory#find(JMenuBar, Action)} works.
+ * Tests that {@link ActionFactory#find(JMenuBar, Action)} works.
* @throws Exception (unexpected)
*/
@Test(expected = NullPointerException.class)
@@ -56,7 +56,7 @@
}
/**
- * Tests whether {@link ActionFactory#find(JMenuBar, Action)} works.
+ * Tests that {@link ActionFactory#find(JMenuBar, Action)} works.
* @throws Exception (unexpected)
*/
@Test(expected = NullPointerException.class)
@@ -66,7 +66,7 @@
}
/**
- * Tests whether {@link ActionFactory#find(JMenuBar, Action)} works.
+ * Tests that {@link ActionFactory#find(JMenuBar, Action)} works.
* @throws Exception (expected)
*/
@Test(expected = NullPointerException.class)
@@ -75,7 +75,7 @@
ActionFactory.find(new JMenu(), null);
}
/**
- * Tests whether {@link ActionFactory#find(JMenuBar, Action)} works.
+ * Tests that {@link ActionFactory#find(JMenuBar, Action)} works.
* @throws Exception (unexpected)
*/
@Test
Modified: libs/swing-action/trunk/src/test/net/sf/japi/swing/ReflectionActionTest.java
===================================================================
--- libs/swing-action/trunk/src/test/net/sf/japi/swing/ReflectionActionTest.java 2007-07-15 10:26:38 UTC (rev 552)
+++ libs/swing-action/trunk/src/test/net/sf/japi/swing/ReflectionActionTest.java 2007-07-15 10:32:03 UTC (rev 553)
@@ -59,7 +59,7 @@
}
/**
- * Tests whether {@link ReflectionAction#putValue(String, Object)} works.
+ * Tests that {@link ReflectionAction#putValue(String, Object)} works.
* @throws Exception (unexpected)
*/
@Test(expected = IllegalArgumentException.class)
@@ -68,7 +68,7 @@
}
/**
- * Tests whether {@link ReflectionAction#putValue(String, Object)} works.
+ * Tests that {@link ReflectionAction#putValue(String, Object)} works.
* @throws Exception (unexpected)
*/
@Test
@@ -79,7 +79,7 @@
}
/**
- * Tests whether {@link ReflectionAction#putValue(String, Object)} works.
+ * Tests that {@link ReflectionAction#putValue(String, Object)} works.
* @throws Exception (unexpected)
*/
@Test
@@ -90,7 +90,7 @@
}
/**
- * Tests whether {@link ReflectionAction#putValue(String, Object)} works.
+ * Tests that {@link ReflectionAction#putValue(String, Object)} works.
* @throws Exception (unexpected)
*/
@Test(expected = IllegalArgumentException.class)
@@ -99,7 +99,7 @@
}
/**
- * Tests whether {@link ReflectionAction#putValue(String, Object)} works.
+ * Tests that {@link ReflectionAction#putValue(String, Object)} works.
* @throws Exception (unexpected)
*/
@Test(expected = IllegalArgumentException.class)
@@ -108,7 +108,7 @@
}
/**
- * Tests whether {@link ReflectionAction#putValue(String, Object)} works.
+ * Tests that {@link ReflectionAction#putValue(String, Object)} works.
* @throws Exception (unexpected)
*/
@Test
@@ -118,7 +118,7 @@
}
/**
- * Tests whether {@link ReflectionAction#putValue(String, Object)} works.
+ * Tests that {@link ReflectionAction#putValue(String, Object)} works.
* @throws Exception (unexpected)
*/
@Test
@@ -131,7 +131,7 @@
}
/**
- * Tests whether {@link ReflectionAction#actionPerformed(ActionEvent)} works.
+ * Tests that {@link ReflectionAction#actionPerformed(ActionEvent)} works.
* @throws Exception (unexpected)
*/
@Test
@@ -143,7 +143,7 @@
}
/**
- * Tests whether {@link ReflectionAction#actionPerformed(ActionEvent)} works.
+ * Tests that {@link ReflectionAction#actionPerformed(ActionEvent)} works.
* @throws Exception (unexpected)
*/
@Test(expected = Exception.class)
Modified: tools/cstyle/trunk/src/test/net/sf/japi/cstyle/CStyleTest.java
===================================================================
--- tools/cstyle/trunk/src/test/net/sf/japi/cstyle/CStyleTest.java 2007-07-15 10:26:38 UTC (rev 552)
+++ tools/cstyle/trunk/src/test/net/sf/japi/cstyle/CStyleTest.java 2007-07-15 10:32:03 UTC (rev 553)
@@ -20,15 +20,15 @@
package test.net.sf.japi.cstyle;
import net.sf.japi.cstyle.CStyle;
+import org.junit.Assert;
import org.junit.Test;
-import org.junit.Assert;
/** Unit test for {@link CStyle}.
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
*/
public class CStyleTest {
- /** Tests whether {@link CStyle#parse(char)} works. */
+ /** Tests that {@link CStyle#parse(char)} works. */
@Test public void testParse() {
final CStyle testling = new CStyle();
final String testString = "if (foo > 'x') { // check x\n printf(\"%d\");\n}";
@@ -39,7 +39,7 @@
Assert.assertEquals("mode now must be NORMAL.", CStyle.PhysicalMode.NORMAL, testling.getPhysicalMode());
}
- /** Tests whether {@link CStyle#reset()} works. */
+ /** Tests that {@link CStyle#reset()} works. */
@Test public void testReset() {
final CStyle testling = new CStyle();
testling.parse('\'');
Modified: tools/string2bytes/trunk/src/test/net/sf/japi/string2bytes/CodecStepTest.java
===================================================================
--- tools/string2bytes/trunk/src/test/net/sf/japi/string2bytes/CodecStepTest.java 2007-07-15 10:26:38 UTC (rev 552)
+++ tools/string2bytes/trunk/src/test/net/sf/japi/string2bytes/CodecStepTest.java 2007-07-15 10:32:03 UTC (rev 553)
@@ -20,13 +20,13 @@
package test.net.sf.japi.string2bytes;
import net.sf.japi.string2bytes.CodecStep;
+import net.sf.japi.string2bytes.EntityCodec;
+import net.sf.japi.string2bytes.IdentityCodec;
import net.sf.japi.string2bytes.StringCodec;
-import net.sf.japi.string2bytes.IdentityCodec;
-import net.sf.japi.string2bytes.EntityCodec;
-import org.junit.Test;
+import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
-import org.junit.After;
+import org.junit.Test;
/**
* Test for {@link CodecStep}.
@@ -65,7 +65,7 @@
}
/**
- * Tests whether {@link CodecStep#CodecStep(StringCodec, String)} works.
+ * Tests that {@link CodecStep#CodecStep(StringCodec, String)} works.
* @throws Exception (unexpected)
*/
@Test public void testCodecStep() throws Exception {
@@ -75,7 +75,7 @@
/**
- * Tests whether {@link CodecStep#getCharset()} works.
+ * Tests that {@link CodecStep#getCharset()} works.
* @throws Exception (unexpected)
*/
@Test public void testGetCharset() throws Exception {
@@ -83,7 +83,7 @@
}
/**
- * Tests whether {@link CodecStep#setCharset(String)} works.
+ * Tests that {@link CodecStep#setCharset(String)} works.
* @throws Exception (unexpected)
*/
@Test public void testSetCharset() throws Exception {
@@ -93,7 +93,7 @@
}
/**
- * Tests whether {@link CodecStep#getCodec()} works.
+ * Tests that {@link CodecStep#getCodec()} works.
* @throws Exception (unexpected)
*/
@Test public void testGetCodec() throws Exception {
@@ -101,7 +101,7 @@
}
/**
- * Tests whether {@link CodecStep#setCodec(StringCodec)} works.
+ * Tests that {@link CodecStep#setCodec(StringCodec)} works.
* @throws Exception (unexpected)
*/
@Test public void testSetCodec() throws Exception {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|