HI....... I'm trying to write test cases for void methods . So any one can give the solution for how to write.......
Here is my sample code
public void objIntoFile() throws Exception
{
addAdminObjects();
file = new File("D:\\ExtractingDB\\export.txt");
writer = new BufferedWriter(new FileWriter(file));
writer.write(query);
writer.write("\nxml on;\n");
writer.write(buffer.toString());
writer.flush();
writer.close();
}