harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r440340 [5/5] - /incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/
Date Tue, 05 Sep 2006 13:39:20 GMT
Modified: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_en.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_en.java?view=diff&rev=440340&r1=440339&r2=440340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_en.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_en.java
Tue Sep  5 06:39:17 2006
@@ -1,27 +1,27 @@
-/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *     http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package tests.support;
-
-public class Support_TestResource_en extends java.util.ListResourceBundle {
-
-	protected Object[][] getContents() {
-		Object[][] contents = { { "parent2", "enValue2" },
-				{ "parent3", "enValue3" }, { "parent4", "enValue4" },
-				{ "child1", "enChildValue1" }, };
-		return contents;
-	}
-
-}
+/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package tests.support;
+
+public class Support_TestResource_en extends java.util.ListResourceBundle {
+
+	protected Object[][] getContents() {
+		Object[][] contents = { { "parent2", "enValue2" },
+				{ "parent3", "enValue3" }, { "parent4", "enValue4" },
+				{ "child1", "enChildValue1" }, };
+		return contents;
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_en.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_en_US.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_en_US.java?view=diff&rev=440340&r1=440339&r2=440340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_en_US.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_en_US.java
Tue Sep  5 06:39:17 2006
@@ -1,27 +1,27 @@
-/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *     http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package tests.support;
-
-public class Support_TestResource_en_US extends java.util.ListResourceBundle {
-
-	protected Object[][] getContents() {
-		Object[][] contents = { { "parent3", "enUSValue3" },
-				{ "parent4", "enUSValue4" }, { "child1", "enUSChildValue1" },
-				{ "child2", "enUSChildValue2" }, };
-		return contents;
-	}
-
-}
+/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package tests.support;
+
+public class Support_TestResource_en_US extends java.util.ListResourceBundle {
+
+	protected Object[][] getContents() {
+		Object[][] contents = { { "parent3", "enUSValue3" },
+				{ "parent4", "enUSValue4" }, { "child1", "enUSChildValue1" },
+				{ "child2", "enUSChildValue2" }, };
+		return contents;
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_en_US.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_fr.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_fr.java?view=diff&rev=440340&r1=440339&r2=440340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_fr.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_fr.java
Tue Sep  5 06:39:17 2006
@@ -1,27 +1,27 @@
-/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *     http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package tests.support;
-
-public class Support_TestResource_fr extends java.util.ListResourceBundle {
-
-	protected Object[][] getContents() {
-		Object[][] contents = { { "parent2", "frValue2" },
-				{ "parent3", "frValue3" }, { "parent4", "frValue4" },
-				{ "child1", "frChildValue1" }, };
-		return contents;
-	}
-
-}
+/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package tests.support;
+
+public class Support_TestResource_fr extends java.util.ListResourceBundle {
+
+	protected Object[][] getContents() {
+		Object[][] contents = { { "parent2", "frValue2" },
+				{ "parent3", "frValue3" }, { "parent4", "frValue4" },
+				{ "child1", "frChildValue1" }, };
+		return contents;
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_fr.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_fr_FR.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_fr_FR.java?view=diff&rev=440340&r1=440339&r2=440340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_fr_FR.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_fr_FR.java
Tue Sep  5 06:39:17 2006
@@ -1,27 +1,27 @@
-/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *     http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package tests.support;
-
-public class Support_TestResource_fr_FR extends java.util.ListResourceBundle {
-
-	protected Object[][] getContents() {
-		Object[][] contents = { { "parent3", "frFRValue3" },
-				{ "parent4", "frFRValue4" }, { "child1", "frFRChildValue1" },
-				{ "child2", "frFRChildValue2" }, };
-		return contents;
-	}
-
-}
+/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package tests.support;
+
+public class Support_TestResource_fr_FR extends java.util.ListResourceBundle {
+
+	protected Object[][] getContents() {
+		Object[][] contents = { { "parent3", "frFRValue3" },
+				{ "parent4", "frFRValue4" }, { "child1", "frFRChildValue1" },
+				{ "child2", "frFRChildValue2" }, };
+		return contents;
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_fr_FR.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_fr_FR_VAR.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_fr_FR_VAR.java?view=diff&rev=440340&r1=440339&r2=440340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_fr_FR_VAR.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_fr_FR_VAR.java
Tue Sep  5 06:39:17 2006
@@ -1,28 +1,28 @@
-/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *     http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package tests.support;
-
-public class Support_TestResource_fr_FR_VAR extends
-		java.util.ListResourceBundle {
-
-	protected Object[][] getContents() {
-		Object[][] contents = { { "parent4", "frFRVARValue4" },
-				{ "child1", "frFRVARChildValue1" },
-				{ "child2", "frFRVARChildValue2" },
-				{ "child3", "frFRVARChildValue3" }, };
-		return contents;
-	}
-
-}
+/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package tests.support;
+
+public class Support_TestResource_fr_FR_VAR extends
+		java.util.ListResourceBundle {
+
+	protected Object[][] getContents() {
+		Object[][] contents = { { "parent4", "frFRVARValue4" },
+				{ "child1", "frFRVARChildValue1" },
+				{ "child2", "frFRVARChildValue2" },
+				{ "child3", "frFRVARChildValue3" }, };
+		return contents;
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TestResource_fr_FR_VAR.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TimeZone.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TimeZone.java?view=diff&rev=440340&r1=440339&r2=440340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TimeZone.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TimeZone.java
Tue Sep  5 06:39:17 2006
@@ -1,74 +1,74 @@
-/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *     http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package tests.support;
-
-import java.util.Calendar;
-import java.util.GregorianCalendar;
-import java.util.TimeZone;
-
-/**
- * Sample java.util.TimeZone subclass to test getDSTSavings() and getOffset(long)
- * APIs
- * 
- */
-public class Support_TimeZone extends TimeZone {
-
-	int rawOffset;
-
-	boolean useDaylightTime;
-
-	public Support_TimeZone(int rawOffset, boolean useDaylightTime) {
-		this.rawOffset = rawOffset;
-		this.useDaylightTime = useDaylightTime;
-	}
-
-	public int getRawOffset() {
-		return rawOffset;
-	}
-
-	/**
-	 * let's assume this timezone has daylight savings from the 4th month till
-	 * the 10th month of the year to ame things simple.
-	 */
-	public boolean inDaylightTime(java.util.Date p1) {
-		if (!useDaylightTime)
-			return false;
-		GregorianCalendar cal = new GregorianCalendar();
-		cal.setTime(p1);
-		int month = cal.get(Calendar.MONTH);
-
-		if (month > 4 && month < 10)
-			return true;
-		else
-			return false;
-	}
-
-	public boolean useDaylightTime() {
-		return useDaylightTime;
-	}
-
-	/*
-	 * return 0 to keep it simple, since this subclass is not used to test this
-	 * method..
-	 */
-	public int getOffset(int p1, int p2, int p3, int p4, int p5, int p6) {
-		return 0;
-	}
-
-	public void setRawOffset(int p1) {
-		rawOffset = p1;
-	}
-}
+/* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package tests.support;
+
+import java.util.Calendar;
+import java.util.GregorianCalendar;
+import java.util.TimeZone;
+
+/**
+ * Sample java.util.TimeZone subclass to test getDSTSavings() and getOffset(long)
+ * APIs
+ * 
+ */
+public class Support_TimeZone extends TimeZone {
+
+	int rawOffset;
+
+	boolean useDaylightTime;
+
+	public Support_TimeZone(int rawOffset, boolean useDaylightTime) {
+		this.rawOffset = rawOffset;
+		this.useDaylightTime = useDaylightTime;
+	}
+
+	public int getRawOffset() {
+		return rawOffset;
+	}
+
+	/**
+	 * let's assume this timezone has daylight savings from the 4th month till
+	 * the 10th month of the year to ame things simple.
+	 */
+	public boolean inDaylightTime(java.util.Date p1) {
+		if (!useDaylightTime)
+			return false;
+		GregorianCalendar cal = new GregorianCalendar();
+		cal.setTime(p1);
+		int month = cal.get(Calendar.MONTH);
+
+		if (month > 4 && month < 10)
+			return true;
+		else
+			return false;
+	}
+
+	public boolean useDaylightTime() {
+		return useDaylightTime;
+	}
+
+	/*
+	 * return 0 to keep it simple, since this subclass is not used to test this
+	 * method..
+	 */
+	public int getOffset(int p1, int p2, int p3, int p4, int p5, int p6) {
+		return 0;
+	}
+
+	public void setRawOffset(int p1) {
+		rawOffset = p1;
+	}
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_TimeZone.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_URLConnector.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_URLConnector.java?view=diff&rev=440340&r1=440339&r2=440340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_URLConnector.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_URLConnector.java
Tue Sep  5 06:39:17 2006
@@ -1,81 +1,81 @@
-/* Copyright 2002, 2005 The Apache Software Foundation or its licensors, as applicable
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *     http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package tests.support;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.net.HttpURLConnection;
-import java.net.URL;
-import java.net.URLConnection;
-
-/**
- * This class implements the Support_HttpConnector interface using java.net
- * URL's
- */
-public class Support_URLConnector implements Support_HttpConnector {
-	private URLConnection instance;
-
-	private boolean streamOpen = false;
-
-	/**
-	 * @see com.ibm.support.Support_HttpConnector#open(String)
-	 */
-	public void open(String address) throws IOException {
-		instance = new URL(address).openConnection();
-	}
-
-	public void close() throws IOException {
-		if (!streamOpen) {
-			((HttpURLConnection) instance).disconnect();
-		}
-	}
-
-	/**
-	 * @see com.ibm.support.Support_HttpConnector#getInputStream()
-	 */
-	public InputStream getInputStream() throws IOException {
-		if (instance == null)
-			return null;
-		streamOpen = true;
-		return instance.getInputStream();
-	}
-
-	public OutputStream getOutputStream() throws IOException {
-		if (instance == null)
-			return null;
-		instance.setDoOutput(true);
-		((HttpURLConnection) instance).setRequestMethod("POST");
-		streamOpen = true;
-		return instance.getOutputStream();
-	}
-
-	public boolean isChunkedOnFlush() {
-		return false;
-	}
-
-	public void setRequestProperty(String key, String value) throws IOException {
-		instance.setRequestProperty(key, value);
-	}
-
-	public String getHeaderField(int index) throws IOException {
-		return ((HttpURLConnection) instance).getHeaderField(index);
-	}
-
-	public String getHeaderFieldKey(int index) throws IOException {
-		return ((HttpURLConnection) instance).getHeaderFieldKey(index);
-	}
-}
+/* Copyright 2002, 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package tests.support;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.net.URLConnection;
+
+/**
+ * This class implements the Support_HttpConnector interface using java.net
+ * URL's
+ */
+public class Support_URLConnector implements Support_HttpConnector {
+	private URLConnection instance;
+
+	private boolean streamOpen = false;
+
+	/**
+	 * @see com.ibm.support.Support_HttpConnector#open(String)
+	 */
+	public void open(String address) throws IOException {
+		instance = new URL(address).openConnection();
+	}
+
+	public void close() throws IOException {
+		if (!streamOpen) {
+			((HttpURLConnection) instance).disconnect();
+		}
+	}
+
+	/**
+	 * @see com.ibm.support.Support_HttpConnector#getInputStream()
+	 */
+	public InputStream getInputStream() throws IOException {
+		if (instance == null)
+			return null;
+		streamOpen = true;
+		return instance.getInputStream();
+	}
+
+	public OutputStream getOutputStream() throws IOException {
+		if (instance == null)
+			return null;
+		instance.setDoOutput(true);
+		((HttpURLConnection) instance).setRequestMethod("POST");
+		streamOpen = true;
+		return instance.getOutputStream();
+	}
+
+	public boolean isChunkedOnFlush() {
+		return false;
+	}
+
+	public void setRequestProperty(String key, String value) throws IOException {
+		instance.setRequestProperty(key, value);
+	}
+
+	public String getHeaderField(int index) throws IOException {
+		return ((HttpURLConnection) instance).getHeaderField(index);
+	}
+
+	public String getHeaderFieldKey(int index) throws IOException {
+		return ((HttpURLConnection) instance).getHeaderFieldKey(index);
+	}
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_URLConnector.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_UnmodifiableCollectionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_UnmodifiableCollectionTest.java?view=diff&rev=440340&r1=440339&r2=440340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_UnmodifiableCollectionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_UnmodifiableCollectionTest.java
Tue Sep  5 06:39:17 2006
@@ -1,108 +1,108 @@
-/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *     http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package tests.support;
-
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.SortedSet;
-import java.util.TreeSet;
-
-public class Support_UnmodifiableCollectionTest extends
-		junit.framework.TestCase {
-
-	Collection col;
-
-	// must be a collection containing the Integers 0 to 99 (which will iterate
-	// in order)
-
-	public Support_UnmodifiableCollectionTest(String p1) {
-		super(p1);
-	}
-
-	public Support_UnmodifiableCollectionTest(String p1, Collection c) {
-		super(p1);
-		col = c;
-	}
-
-	public void runTest() {
-
-		// contains
-		assertTrue("UnmodifiableCollectionTest - should contain 0", col
-				.contains(new Integer(0)));
-		assertTrue("UnmodifiableCollectionTest - should contain 50", col
-				.contains(new Integer(50)));
-		assertTrue("UnmodifiableCollectionTest - should not contain 100", !col
-				.contains(new Integer(100)));
-
-		// containsAll
-		HashSet hs = new HashSet();
-		hs.add(new Integer(0));
-		hs.add(new Integer(25));
-		hs.add(new Integer(99));
-		assertTrue(
-				"UnmodifiableCollectionTest - should contain set of 0, 25, and 99",
-				col.containsAll(hs));
-		hs.add(new Integer(100));
-		assertTrue(
-				"UnmodifiableCollectionTest - should not contain set of 0, 25, 99 and 100",
-				!col.containsAll(hs));
-
-		// isEmpty
-		assertTrue("UnmodifiableCollectionTest - should not be empty", !col
-				.isEmpty());
-
-		// iterator
-		Iterator it = col.iterator();
-		SortedSet ss = new TreeSet();
-		while (it.hasNext()) {
-			ss.add(it.next());
-		}
-		it = ss.iterator();
-		for (int counter = 0; it.hasNext(); counter++) {
-			int nextValue = ((Integer) it.next()).intValue();
-			assertTrue(
-					"UnmodifiableCollectionTest - Iterator returned wrong value.  Wanted: "
-							+ counter + " got: " + nextValue,
-					nextValue == counter);
-		}
-
-		// size
-		assertTrue(
-				"UnmodifiableCollectionTest - returned wrong size.  Wanted 100, got: "
-						+ col.size(), col.size() == 100);
-
-		// toArray
-		Object[] objArray;
-		objArray = col.toArray();
-		for (int counter = 0; it.hasNext(); counter++) {
-			assertTrue(
-					"UnmodifiableCollectionTest - toArray returned incorrect array",
-					objArray[counter] == it.next());
-		}
-
-		// toArray (Object[])
-		objArray = new Object[100];
-		col.toArray(objArray);
-		for (int counter = 0; it.hasNext(); counter++) {
-			assertTrue(
-					"UnmodifiableCollectionTest - toArray(Object) filled array incorrectly",
-					objArray[counter] == it.next());
-		}
-
-	}
-
-}
+/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package tests.support;
+
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.SortedSet;
+import java.util.TreeSet;
+
+public class Support_UnmodifiableCollectionTest extends
+		junit.framework.TestCase {
+
+	Collection col;
+
+	// must be a collection containing the Integers 0 to 99 (which will iterate
+	// in order)
+
+	public Support_UnmodifiableCollectionTest(String p1) {
+		super(p1);
+	}
+
+	public Support_UnmodifiableCollectionTest(String p1, Collection c) {
+		super(p1);
+		col = c;
+	}
+
+	public void runTest() {
+
+		// contains
+		assertTrue("UnmodifiableCollectionTest - should contain 0", col
+				.contains(new Integer(0)));
+		assertTrue("UnmodifiableCollectionTest - should contain 50", col
+				.contains(new Integer(50)));
+		assertTrue("UnmodifiableCollectionTest - should not contain 100", !col
+				.contains(new Integer(100)));
+
+		// containsAll
+		HashSet hs = new HashSet();
+		hs.add(new Integer(0));
+		hs.add(new Integer(25));
+		hs.add(new Integer(99));
+		assertTrue(
+				"UnmodifiableCollectionTest - should contain set of 0, 25, and 99",
+				col.containsAll(hs));
+		hs.add(new Integer(100));
+		assertTrue(
+				"UnmodifiableCollectionTest - should not contain set of 0, 25, 99 and 100",
+				!col.containsAll(hs));
+
+		// isEmpty
+		assertTrue("UnmodifiableCollectionTest - should not be empty", !col
+				.isEmpty());
+
+		// iterator
+		Iterator it = col.iterator();
+		SortedSet ss = new TreeSet();
+		while (it.hasNext()) {
+			ss.add(it.next());
+		}
+		it = ss.iterator();
+		for (int counter = 0; it.hasNext(); counter++) {
+			int nextValue = ((Integer) it.next()).intValue();
+			assertTrue(
+					"UnmodifiableCollectionTest - Iterator returned wrong value.  Wanted: "
+							+ counter + " got: " + nextValue,
+					nextValue == counter);
+		}
+
+		// size
+		assertTrue(
+				"UnmodifiableCollectionTest - returned wrong size.  Wanted 100, got: "
+						+ col.size(), col.size() == 100);
+
+		// toArray
+		Object[] objArray;
+		objArray = col.toArray();
+		for (int counter = 0; it.hasNext(); counter++) {
+			assertTrue(
+					"UnmodifiableCollectionTest - toArray returned incorrect array",
+					objArray[counter] == it.next());
+		}
+
+		// toArray (Object[])
+		objArray = new Object[100];
+		col.toArray(objArray);
+		for (int counter = 0; it.hasNext(); counter++) {
+			assertTrue(
+					"UnmodifiableCollectionTest - toArray(Object) filled array incorrectly",
+					objArray[counter] == it.next());
+		}
+
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_UnmodifiableCollectionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_UnmodifiableMapTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_UnmodifiableMapTest.java?view=diff&rev=440340&r1=440339&r2=440340
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_UnmodifiableMapTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_UnmodifiableMapTest.java
Tue Sep  5 06:39:17 2006
@@ -1,157 +1,157 @@
-/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *     http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package tests.support;
-
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Set;
-
-public class Support_UnmodifiableMapTest extends junit.framework.TestCase {
-
-	Map map;
-
-	// must be a map containing the string keys "0"-"99" paired with the Integer
-	// values Integer(0) to Integer(99)
-
-	public Support_UnmodifiableMapTest(String p1) {
-		super(p1);
-	}
-
-	public Support_UnmodifiableMapTest(String p1, Map m) {
-		super(p1);
-		map = m;
-	}
-
-	public void runTest() {
-		// containsKey
-		assertTrue("UnmodifiableMapTest - Should contain the key \"0\"", map
-				.containsKey("0"));
-		assertTrue("UnmodifiableMapTest - Should contain the key \"50\"", map
-				.containsKey("50"));
-		assertTrue("UnmodifiableMapTest - Should not contain the key \"100\"",
-				!map.containsKey("100"));
-
-		// containsValue
-		assertTrue("UnmodifiableMapTest - Should contain the value 0", map
-				.containsValue(new Integer(0)));
-		assertTrue("UnmodifiableMapTest - Should contain the value 50", map
-				.containsValue(new Integer(50)));
-		assertTrue("UnmodifiableMapTest - Should not contain value 100", !map
-				.containsValue(new Integer(100)));
-
-		// entrySet
-		Set entrySet = map.entrySet();
-		Iterator entrySetIterator = entrySet.iterator();
-		int myCounter = 0;
-		while (entrySetIterator.hasNext()) {
-			Map.Entry me = (Map.Entry) entrySetIterator.next();
-			assertTrue("UnmodifiableMapTest - Incorrect Map.Entry returned",
-					map.get(me.getKey()).equals(me.getValue()));
-			myCounter++;
-		}
-		assertEquals("UnmodifiableMapTest - Incorrect number of map entries returned",
-				100, myCounter);
-
-		// get
-		assertTrue("UnmodifiableMapTest - getting \"0\" didn't return 0",
-				((Integer) map.get("0")).intValue() == 0);
-		assertTrue("UnmodifiableMapTest - getting \"50\" didn't return 0",
-				((Integer) map.get("0")).intValue() == 0);
-		assertNull("UnmodifiableMapTest - getting \"100\" didn't return null",
-				map.get("100"));
-
-		// isEmpty
-		assertTrue(
-				"UnmodifiableMapTest - should have returned false to isEmpty",
-				!map.isEmpty());
-
-		// keySet
-		Set keySet = map.keySet();
-		t_KeySet(keySet);
-
-		// size
-		assertTrue("Size should return 100, returned: " + map.size(), map
-				.size() == 100);
-
-		// values
-		new Support_UnmodifiableCollectionTest("Unmod--from map test", map
-				.values());
-
-	}
-
-	void t_KeySet(Set keySet) {
-		// keySet should be a set of the strings "0" to "99"
-
-		// contains
-		assertTrue("UnmodifiableMapTest - keySetTest - should contain \"0\"",
-				keySet.contains("0"));
-		assertTrue("UnmodifiableMapTest - keySetTest - should contain \"50\"",
-				keySet.contains("50"));
-		assertTrue(
-				"UnmodifiableMapTest - keySetTest - should not contain \"100\"",
-				!keySet.contains("100"));
-
-		// containsAll
-		HashSet hs = new HashSet();
-		hs.add("0");
-		hs.add("25");
-		hs.add("99");
-		assertTrue(
-				"UnmodifiableMapTest - keySetTest - should contain set of \"0\", \"25\", and \"99\"",
-				keySet.containsAll(hs));
-		hs.add("100");
-		assertTrue(
-				"UnmodifiableMapTest - keySetTest - should not contain set of \"0\", \"25\", \"99\" and
\"100\"",
-				!keySet.containsAll(hs));
-
-		// isEmpty
-		assertTrue("UnmodifiableMapTest - keySetTest - should not be empty",
-				!keySet.isEmpty());
-
-		// iterator
-		Iterator it = keySet.iterator();
-		while (it.hasNext()) {
-			assertTrue(
-					"UnmodifiableMapTest - keySetTest - Iterator returned wrong values",
-					keySet.contains(it.next()));
-		}
-
-		// size
-		assertTrue(
-				"UnmodifiableMapTest - keySetTest - returned wrong size.  Wanted 100, got: "
-						+ keySet.size(), keySet.size() == 100);
-
-		// toArray
-		Object[] objArray;
-		objArray = keySet.toArray();
-		for (int counter = 0; it.hasNext(); counter++) {
-			assertTrue(
-					"UnmodifiableMapTest - keySetTest - toArray returned incorrect array",
-					objArray[counter] == it.next());
-		}
-
-		// toArray (Object[])
-		objArray = new Object[100];
-		keySet.toArray(objArray);
-		for (int counter = 0; it.hasNext(); counter++) {
-			assertTrue(
-					"UnmodifiableMapTest - keySetTest - toArray(Object) filled array incorrectly",
-					objArray[counter] == it.next());
-		}
-	}
-
-}
+/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package tests.support;
+
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Set;
+
+public class Support_UnmodifiableMapTest extends junit.framework.TestCase {
+
+	Map map;
+
+	// must be a map containing the string keys "0"-"99" paired with the Integer
+	// values Integer(0) to Integer(99)
+
+	public Support_UnmodifiableMapTest(String p1) {
+		super(p1);
+	}
+
+	public Support_UnmodifiableMapTest(String p1, Map m) {
+		super(p1);
+		map = m;
+	}
+
+	public void runTest() {
+		// containsKey
+		assertTrue("UnmodifiableMapTest - Should contain the key \"0\"", map
+				.containsKey("0"));
+		assertTrue("UnmodifiableMapTest - Should contain the key \"50\"", map
+				.containsKey("50"));
+		assertTrue("UnmodifiableMapTest - Should not contain the key \"100\"",
+				!map.containsKey("100"));
+
+		// containsValue
+		assertTrue("UnmodifiableMapTest - Should contain the value 0", map
+				.containsValue(new Integer(0)));
+		assertTrue("UnmodifiableMapTest - Should contain the value 50", map
+				.containsValue(new Integer(50)));
+		assertTrue("UnmodifiableMapTest - Should not contain value 100", !map
+				.containsValue(new Integer(100)));
+
+		// entrySet
+		Set entrySet = map.entrySet();
+		Iterator entrySetIterator = entrySet.iterator();
+		int myCounter = 0;
+		while (entrySetIterator.hasNext()) {
+			Map.Entry me = (Map.Entry) entrySetIterator.next();
+			assertTrue("UnmodifiableMapTest - Incorrect Map.Entry returned",
+					map.get(me.getKey()).equals(me.getValue()));
+			myCounter++;
+		}
+		assertEquals("UnmodifiableMapTest - Incorrect number of map entries returned",
+				100, myCounter);
+
+		// get
+		assertTrue("UnmodifiableMapTest - getting \"0\" didn't return 0",
+				((Integer) map.get("0")).intValue() == 0);
+		assertTrue("UnmodifiableMapTest - getting \"50\" didn't return 0",
+				((Integer) map.get("0")).intValue() == 0);
+		assertNull("UnmodifiableMapTest - getting \"100\" didn't return null",
+				map.get("100"));
+
+		// isEmpty
+		assertTrue(
+				"UnmodifiableMapTest - should have returned false to isEmpty",
+				!map.isEmpty());
+
+		// keySet
+		Set keySet = map.keySet();
+		t_KeySet(keySet);
+
+		// size
+		assertTrue("Size should return 100, returned: " + map.size(), map
+				.size() == 100);
+
+		// values
+		new Support_UnmodifiableCollectionTest("Unmod--from map test", map
+				.values());
+
+	}
+
+	void t_KeySet(Set keySet) {
+		// keySet should be a set of the strings "0" to "99"
+
+		// contains
+		assertTrue("UnmodifiableMapTest - keySetTest - should contain \"0\"",
+				keySet.contains("0"));
+		assertTrue("UnmodifiableMapTest - keySetTest - should contain \"50\"",
+				keySet.contains("50"));
+		assertTrue(
+				"UnmodifiableMapTest - keySetTest - should not contain \"100\"",
+				!keySet.contains("100"));
+
+		// containsAll
+		HashSet hs = new HashSet();
+		hs.add("0");
+		hs.add("25");
+		hs.add("99");
+		assertTrue(
+				"UnmodifiableMapTest - keySetTest - should contain set of \"0\", \"25\", and \"99\"",
+				keySet.containsAll(hs));
+		hs.add("100");
+		assertTrue(
+				"UnmodifiableMapTest - keySetTest - should not contain set of \"0\", \"25\", \"99\" and
\"100\"",
+				!keySet.containsAll(hs));
+
+		// isEmpty
+		assertTrue("UnmodifiableMapTest - keySetTest - should not be empty",
+				!keySet.isEmpty());
+
+		// iterator
+		Iterator it = keySet.iterator();
+		while (it.hasNext()) {
+			assertTrue(
+					"UnmodifiableMapTest - keySetTest - Iterator returned wrong values",
+					keySet.contains(it.next()));
+		}
+
+		// size
+		assertTrue(
+				"UnmodifiableMapTest - keySetTest - returned wrong size.  Wanted 100, got: "
+						+ keySet.size(), keySet.size() == 100);
+
+		// toArray
+		Object[] objArray;
+		objArray = keySet.toArray();
+		for (int counter = 0; it.hasNext(); counter++) {
+			assertTrue(
+					"UnmodifiableMapTest - keySetTest - toArray returned incorrect array",
+					objArray[counter] == it.next());
+		}
+
+		// toArray (Object[])
+		objArray = new Object[100];
+		keySet.toArray(objArray);
+		for (int counter = 0; it.hasNext(); counter++) {
+			assertTrue(
+					"UnmodifiableMapTest - keySetTest - toArray(Object) filled array incorrectly",
+					objArray[counter] == it.next());
+		}
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_UnmodifiableMapTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message