Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Debugging temp directory
  • Loading branch information
escowles committed Apr 10, 2014
1 parent 5cdf71a commit 89258de
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -57,6 +57,7 @@
import static org.junit.Assert.fail;

import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringWriter;
Expand Down Expand Up @@ -991,6 +992,16 @@ public String getMethod() {
**/
@Test
public void testUploadToProjection() throws IOException {
// make sure directory is writable
final File dir = new File("./target/test-classes/test-objects");
logger.debug("dir: " + dir.getAbsolutePath());
logger.debug(" e: " + dir.exists());
logger.debug(" d: " + dir.isDirectory());
logger.debug(" r: " + dir.canRead());
logger.debug(" w: " + dir.canWrite());
File tmp = File.createTempFile("test",null,dir);
logger.debug("tmp: " + tmp.getAbsolutePath());

// upload file to federated filesystem using rest api
final String pid = randomUUID().toString();
final String uploadLocation = serverAddress + "files/" + pid + "/ds1/fcr:content";
Expand Down

0 comments on commit 89258de

Please sign in to comment.