You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2009/11/04 11:03:36 UTC
svn commit: r832693 - in /incubator/pivot/trunk:
core/src/org/apache/pivot/util/MD5.java
web/test/org/apache/pivot/web/test/WebQueryTestClientBasic.java
Author: smartini
Date: Wed Nov 4 10:03:36 2009
New Revision: 832693
URL: http://svn.apache.org/viewvc?rev=832693&view=rev
Log:
trim-whitespace
Modified:
incubator/pivot/trunk/core/src/org/apache/pivot/util/MD5.java
incubator/pivot/trunk/web/test/org/apache/pivot/web/test/WebQueryTestClientBasic.java
Modified: incubator/pivot/trunk/core/src/org/apache/pivot/util/MD5.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/core/src/org/apache/pivot/util/MD5.java?rev=832693&r1=832692&r2=832693&view=diff
==============================================================================
--- incubator/pivot/trunk/core/src/org/apache/pivot/util/MD5.java (original)
+++ incubator/pivot/trunk/core/src/org/apache/pivot/util/MD5.java Wed Nov 4 10:03:36 2009
@@ -42,7 +42,7 @@
/**
* Retrieves a byte sequence representing the MD5 digest of the specified
* byte sequence. Note that any Exception is handled inside.
- *
+ *
* @param data the data to digest.
* @return the MD5 digest as an array of 16 bytes.
*/
@@ -71,7 +71,7 @@
/**
* Transform the given string in a byte array, using the given encoding.
* Note that any Exception is handled inside.
- *
+ *
* @param string The string to transform.
* @param encoding The encoding to use, or <tt>null</tt> to use the default
* encoding.
@@ -94,7 +94,7 @@
/**
* Encodes the 128 bit (16 bytes) MD5 into a 32 character String.
- *
+ *
* @param binaryData The byte array containing the digest.
* @return The encoded MD5 string.
*/
@@ -119,7 +119,7 @@
/**
* Transform the given string in a digested version, using the given
* encoding.
- *
+ *
* @param string The string to digest.
* @param encoding The encoding to use, or <tt>null to use the default
* encoding.</tt>
@@ -135,7 +135,7 @@
/**
* Convert a byte array into a printable format containing a string of
* hexadecimal digit characters (two per byte).
- *
+ *
* @param bytes Byte array representation.
*/
public static String toHexString(byte bytes[]) {
Modified: incubator/pivot/trunk/web/test/org/apache/pivot/web/test/WebQueryTestClientBasic.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/web/test/org/apache/pivot/web/test/WebQueryTestClientBasic.java?rev=832693&r1=832692&r2=832693&view=diff
==============================================================================
--- incubator/pivot/trunk/web/test/org/apache/pivot/web/test/WebQueryTestClientBasic.java (original)
+++ incubator/pivot/trunk/web/test/org/apache/pivot/web/test/WebQueryTestClientBasic.java Wed Nov 4 10:03:36 2009
@@ -50,7 +50,7 @@
* some parameters have to be changed inside the json file, then rerun the test.
* <br/>
* Note that at the end of some tests, the downloaded content is written (dump) to the console,
- * but it's useful only for text resources, so don't do it for binary resources.
+ * but it's useful only for text resources, so don't do it for binary resources.
* Here a sample (including commented code for other ways to do this):
* <pre>
String dump = // result.toString()
@@ -123,7 +123,7 @@
query.setTimeout(resources.getLong("timeout"));
log("GET Query to " + query.getLocation());
- // to download generic content don't use BinarySerializer,
+ // to download generic content don't use BinarySerializer,
// but instead use the ByteArraySerializer
query.setSerializer(new ByteArraySerializer());
@@ -134,7 +134,7 @@
String dump = new String((byte[]) result);
log("Query result: " + (dump.getBytes().length) + " bytes \n" + dump);
}
-
+
@Test(timeout = 10000, expected = QueryException.class)
public void public_noauth_NotExistingHost() throws QueryException {
log("public_noauth_NotExistingHost()");