[Arakhnę-Dev] [336] * JDK 1.6 -> JDK 1.7 |
[ Thread Index |
Date Index
| More arakhne.org/dev Archives
]
Revision: 336
Author: galland
Date: 2012-05-14 19:10:14 +0200 (Mon, 14 May 2012)
Log Message:
-----------
* JDK 1.6 -> JDK 1.7
Modified Paths:
--------------
trunk/arakhneVmutils/java/src/test/java/org/arakhne/vmutil/file/URLConnectionTest.java
Modified: trunk/arakhneVmutils/java/src/test/java/org/arakhne/vmutil/file/URLConnectionTest.java
===================================================================
--- trunk/arakhneVmutils/java/src/test/java/org/arakhne/vmutil/file/URLConnectionTest.java 2012-04-03 15:16:29 UTC (rev 335)
+++ trunk/arakhneVmutils/java/src/test/java/org/arakhne/vmutil/file/URLConnectionTest.java 2012-05-14 17:10:14 UTC (rev 336)
@@ -82,7 +82,7 @@
/**
*/
public void testGetHeaderFieldInt() {
- assertEquals("text/plain", this.connection.getHeaderField(0)); //$NON-NLS-1$
+ assertEquals("application/octet-stream", this.connection.getHeaderField(0)); //$NON-NLS-1$
assertEquals("25", this.connection.getHeaderField(1)); //$NON-NLS-1$
assertNotNull(this.connection.getHeaderField(2));
assertNull(this.connection.getHeaderField(3));
@@ -91,7 +91,7 @@
/**
*/
public void testGetHeaderFieldString() {
- assertEquals("text/plain", this.connection.getHeaderField("content-type")); //$NON-NLS-1$ //$NON-NLS-2$
+ assertEquals("application/octet-stream", this.connection.getHeaderField("content-type")); //$NON-NLS-1$ //$NON-NLS-2$
assertEquals("25", this.connection.getHeaderField("content-length")); //$NON-NLS-1$ //$NON-NLS-2$
assertNotNull(this.connection.getHeaderField("last-modified")); //$NON-NLS-1$
assertNull(this.connection.getHeaderField("expires")); //$NON-NLS-1$
@@ -103,7 +103,7 @@
Map<?,?> map = this.connection.getHeaderFields();
assertNotNull(map);
assertEquals(3, map.size());
- assertEquals(Collections.singletonList("text/plain"), map.get("content-type")); //$NON-NLS-1$ //$NON-NLS-2$
+ assertEquals(Collections.singletonList("application/octet-stream"), map.get("content-type")); //$NON-NLS-1$ //$NON-NLS-2$
assertEquals(Collections.singletonList("25"), map.get("content-length")); //$NON-NLS-1$ //$NON-NLS-2$
assertNotNull(map.get("last-modified")); //$NON-NLS-1$
assertNull(map.get("expires")); //$NON-NLS-1$