Search in sources :

Example 11 with FileHandler

use of com.lazerycode.ebselen.handlers.FileHandler in project Ebselen by Ardesco.

the class FileHandlerTest method checkThatNewlyCreatedFileCanBeWrittenTo.

@Test
public void checkThatNewlyCreatedFileCanBeWrittenTo() throws Exception {
    String thisFilename = randomFilename();
    FileHandler myFile = new FileHandler(thisFilename, true);
    myFile.write("This file can be written to.");
    myFile.close();
}
Also used : FileHandler(com.lazerycode.ebselen.handlers.FileHandler) Test(org.junit.Test)

Aggregations

FileHandler (com.lazerycode.ebselen.handlers.FileHandler)11 File (java.io.File)4 XMLHandler (com.lazerycode.ebselen.handlers.XMLHandler)2 CleanerProperties (org.htmlcleaner.CleanerProperties)2 Test (org.junit.Test)2 WebElement (org.openqa.selenium.WebElement)2 StringWriter (java.io.StringWriter)1 URL (java.net.URL)1 ArrayList (java.util.ArrayList)1 Properties (java.util.Properties)1 HttpClient (org.apache.commons.httpclient.HttpClient)1 GetMethod (org.apache.commons.httpclient.methods.GetMethod)1 Template (org.apache.velocity.Template)1 VelocityContext (org.apache.velocity.VelocityContext)1 VelocityEngine (org.apache.velocity.app.VelocityEngine)1 HtmlCleaner (org.htmlcleaner.HtmlCleaner)1 PrettyXmlSerializer (org.htmlcleaner.PrettyXmlSerializer)1 TagNode (org.htmlcleaner.TagNode)1