You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by sm...@apache.org on 2006/06/15 09:40:51 UTC
svn commit: r414500 -
/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/tests/java/net/URLConnectionTest.java
Author: smishura
Date: Thu Jun 15 00:40:50 2006
New Revision: 414500
URL: http://svn.apache.org/viewvc?rev=414500&view=rev
Log:
Formating to 4-space indentation
Modified:
incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/tests/java/net/URLConnectionTest.java
Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/tests/java/net/URLConnectionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/tests/java/net/URLConnectionTest.java?rev=414500&r1=414499&r2=414500&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/tests/java/net/URLConnectionTest.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/tests/java/net/URLConnectionTest.java Thu Jun 15 00:40:50 2006
@@ -24,48 +24,48 @@
public class URLConnectionTest extends TestCase {
- /**
- * @tests java.net.URLConnection#setUseCaches(boolean)
- */
- public void test_setUseCachesZ() throws MalformedURLException, IOException {
+ /**
+ * @tests java.net.URLConnection#setUseCaches(boolean)
+ */
+ public void test_setUseCachesZ() throws MalformedURLException, IOException {
// Regression for HARMONY-71
MockURLConnection u = new MockURLConnection(new URL(
"http://www.apache.org"));
- u.connect();
- try {
- u.setUseCaches(true);
- fail("Assert 0: expected an IllegalStateException");
- } catch (IllegalStateException e) {
- // expected
- }
- }
-
- /**
- * @tests java.net.URLConnection#setAllowUserInteraction(boolean)
- */
- public void test_setAllowUserInteractionZ() throws MalformedURLException,
- IOException {
-
+ u.connect();
+ try {
+ u.setUseCaches(true);
+ fail("Assert 0: expected an IllegalStateException");
+ } catch (IllegalStateException e) {
+ // expected
+ }
+ }
+
+ /**
+ * @tests java.net.URLConnection#setAllowUserInteraction(boolean)
+ */
+ public void test_setAllowUserInteractionZ() throws MalformedURLException,
+ IOException {
+
// Regression for HARMONY-72
MockURLConnection u = new MockURLConnection(new URL(
"http://www.apache.org"));
- u.connect();
- try {
- u.setAllowUserInteraction(false);
- fail("Assert 0: expected an IllegalStateException");
- } catch (IllegalStateException e) {
- // expected
- }
- }
+ u.connect();
+ try {
+ u.setAllowUserInteraction(false);
+ fail("Assert 0: expected an IllegalStateException");
+ } catch (IllegalStateException e) {
+ // expected
+ }
+ }
}
class MockURLConnection extends URLConnection {
-
- public MockURLConnection(URL url){
+
+ public MockURLConnection(URL url) {
super(url);
}
-
+
public void connect() {
connected = true;
}