summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorJohn Arthorne2012-09-26 09:54:55 (EDT)
committer John Arthorne2012-09-26 09:55:30 (EDT)
commitb040cd51d6542901c7d956d3aa1e5f98c5fe9303 (patch)
treea08ceec8049c46e16ba232d394956de7436775b5
parent183729fbff385316b3e9e49014305c383108b9cc (diff)
downloadorg.eclipse.orion.server-b040cd51d6542901c7d956d3aa1e5f98c5fe9303.zip
org.eclipse.orion.server-b040cd51d6542901c7d956d3aa1e5f98c5fe9303.tar.gz
org.eclipse.orion.server-b040cd51d6542901c7d956d3aa1e5f98c5fe9303.tar.bz2
Make test file writeable to enable test cleanupv20120926-1355
-rw-r--r--tests/org.eclipse.orion.server.tests/src/org/eclipse/orion/server/tests/servlets/files/AdvancedFilesTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/org.eclipse.orion.server.tests/src/org/eclipse/orion/server/tests/servlets/files/AdvancedFilesTest.java b/tests/org.eclipse.orion.server.tests/src/org/eclipse/orion/server/tests/servlets/files/AdvancedFilesTest.java
index 0cda8d9..c8fe94a 100644
--- a/tests/org.eclipse.orion.server.tests/src/org/eclipse/orion/server/tests/servlets/files/AdvancedFilesTest.java
+++ b/tests/org.eclipse.orion.server.tests/src/org/eclipse/orion/server/tests/servlets/files/AdvancedFilesTest.java
@@ -135,5 +135,10 @@ public class AdvancedFilesTest extends FileSystemTest {
responseObject = new JSONObject(response.getText());
checkFileMetadata(responseObject, fileName, new Long(-1), null, null, request.getURL().getRef(), new Long(0), new Boolean(true), new Boolean(true), null);
+ //make the file writeable again so test can clean up
+ request = getPutFileRequest(fileName + "?parts=meta", getFileMetadataObject(false, false).toString());
+ response = webConversation.getResponse(request);
+ assertEquals(HttpURLConnection.HTTP_NO_CONTENT, response.getResponseCode());
+
}
} \ No newline at end of file