You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2017/01/15 09:20:19 UTC
svn commit: r1778893 [3/3] - in /sis/branches/JDK8/core:
sis-metadata/src/main/java/org/apache/sis/metadata/
sis-metadata/src/main/java/org/apache/sis/metadata/iso/
sis-metadata/src/test/java/org/apache/sis/metadata/
sis-utility/src/main/java/org/apach...
Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/collection/DefaultTreeTableTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/collection/DefaultTreeTableTest.java?rev=1778893&r1=1778892&r2=1778893&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/collection/DefaultTreeTableTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/collection/DefaultTreeTableTest.java [UTF-8] Sun Jan 15 09:20:18 2017
@@ -46,8 +46,7 @@ public final strictfp class DefaultTreeT
* <p>This method is part of a chain.
* The next method is {@link #testNodeCreation(DefaultTreeTable)}.</p>
*
- * @return The created table, for chaining with methods testing the next step
- * after this one.
+ * @return the created table, for chaining with methods testing the next step after this one.
*/
@TestStep
public static DefaultTreeTable testTableCreation() {
@@ -67,8 +66,8 @@ public final strictfp class DefaultTreeT
* The previous method is {@link #testTableCreation()} and
* the next method is {@link #testNodeDisplacement(TreeTable.Node)}.</p>
*
- * @param table An initially empty table where to set the root.
- * @return The root node produced by this method.
+ * @param table an initially empty table where to set the root.
+ * @return the root node produced by this method.
*/
@TestStep
public static DefaultTreeTable.Node testNodeCreation(final DefaultTreeTable table) {
@@ -111,7 +110,7 @@ public final strictfp class DefaultTreeT
* The previous method is {@link #testNodeCreation(DefaultTreeTable)} and
* the next method is {@link #testSerialization(TreeTable)}.</p>
*
- * @param root The root node where to move children.
+ * @param root the root node where to move children.
*/
@TestStep
public static void testNodeDisplacement(final TreeTable.Node root) {
@@ -142,8 +141,8 @@ public final strictfp class DefaultTreeT
* <p>This method is part of a chain.
* The previous method is {@link #testNodeDisplacement(TreeTable.Node)}.</p>
*
- * @param table The table to clone.
- * @throws CloneNotSupportedException Should never happen.
+ * @param table the table to clone.
+ * @throws CloneNotSupportedException if the table can not be cloned.
*/
@TestStep
public static void testClone(final DefaultTreeTable table) throws CloneNotSupportedException {
@@ -161,7 +160,7 @@ public final strictfp class DefaultTreeT
* <p>This method is part of a chain.
* The previous method is {@link #testNodeDisplacement(TreeTable.Node)}.</p>
*
- * @param table The table to serialize.
+ * @param table the table to serialize.
*/
@TestStep
public static void testSerialization(final TreeTable table) {
@@ -188,7 +187,7 @@ public final strictfp class DefaultTreeT
*
* <p>This test is actually a chain of {@link TestStep} methods.</p>
*
- * @throws CloneNotSupportedException If the {@link DefaultTreeTable#clone()} method failed.
+ * @throws CloneNotSupportedException if the {@link DefaultTreeTable#clone()} method failed.
*/
@Test
public void testTreeTableCreation() throws CloneNotSupportedException {
Modified: sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/collection/TreeTableFormatTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/collection/TreeTableFormatTest.java?rev=1778893&r1=1778892&r2=1778893&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/collection/TreeTableFormatTest.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/test/java/org/apache/sis/util/collection/TreeTableFormatTest.java [UTF-8] Sun Jan 15 09:20:18 2017
@@ -68,7 +68,7 @@ public final strictfp class TreeTableFor
* and performs its check on the assumption that the tree formatting is
* accurate.
*
- * @throws ParseException Should never happen.
+ * @throws ParseException if the parsing failed.
*/
@Test
@DependsOnMethod("testTreeFormat")
@@ -139,7 +139,7 @@ public final strictfp class TreeTableFor
* Tests the parsing of a tree table. This method parses and reformats a tree table,
* and performs its check on the assumption that the tree table formatting is accurate.
*
- * @throws ParseException Should never happen.
+ * @throws ParseException if the parsing failed.
*/
@Test
@DependsOnMethod("testTreeTableFormat")
@@ -161,7 +161,7 @@ public final strictfp class TreeTableFor
/**
* Tests parsing and formatting using a different column separator.
*
- * @throws ParseException Should never happen.
+ * @throws ParseException if the parsing failed.
*/
@Test
@DependsOnMethod("testTreeTableParse")
@@ -190,7 +190,7 @@ public final strictfp class TreeTableFor
tf.setColumnSeparatorPattern("? [ ]; ");
assertMultilinesEquals(
"Node #1 ; 10 ; Value #1B\n" +
- "�\u251c\u2500\u2500Node #2 ; 20\n" + // Column separator omitted here.
+ "�\u251c\u2500\u2500Node #2 ; 20\n" + // Column separator omitted here.
"�\u2502���\u2514\u2500\u2500Node #4 ; 40 ; Value #4B\n" +
"�\u2514\u2500\u2500Node #3 ; ; Value #3B\n", tf.format(table));
/*
@@ -256,14 +256,14 @@ public final strictfp class TreeTableFor
assertMultilinesEquals(
"Root\n" +
"��\u251c\u2500CodeList\u2026\u2026 Point de contact\n" +
- "��\u251c\u2500Enum\u2026\u2026\u2026\u2026\u2026\u2026 Half down\n" + // No localization provided.
+ "��\u251c\u2500Enum\u2026\u2026\u2026\u2026\u2026\u2026 Half down\n" + // No localization provided.
"��\u2514\u2500i18n\u2026\u2026\u2026\u2026\u2026\u2026 Une phrase en fran�ais\n", tf.format(table));
tf = new TreeTableFormat(Locale.JAPANESE, null);
assertMultilinesEquals(
"Root\n" +
- "��\u251c\u2500CodeList\u2026\u2026 Point of contact\n" + // Not yet localized.
- "��\u251c\u2500Enum\u2026\u2026\u2026\u2026\u2026\u2026 Half down\n" + // No localization provided.
+ "��\u251c\u2500CodeList\u2026\u2026 Point of contact\n" + // Not yet localized.
+ "��\u251c\u2500Enum\u2026\u2026\u2026\u2026\u2026\u2026 Half down\n" + // No localization provided.
"��\u2514\u2500i18n\u2026\u2026\u2026\u2026\u2026\u2026 \u65e5\u672c\u8a9e\u306e\u8a00\u8449\n", tf.format(table));
}
}