Package com.ettrema.httpclient

Examples of com.ettrema.httpclient.Folder.uploadFile()


       
        java.io.File tmp=java.io.File.createTempFile("filetest", ".txt");
        FileUtils.writeStringToFile(tmp, "this is a test text 888");
       
        try{
          File uploaded = hh.uploadFile(tmp);
        } catch (Exception e){
          //This is expected: User does not have permission to publish contentlets
          Assert.assertTrue(e instanceof InternalServerError);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.