// Path: src/test/java/com/jordanwilliams/heftydb/test/helper/TestFileHelper.java
// public class TestFileHelper {
// 
//     public static final Path TEMP_PATH = Paths.get("/tmp/heftytest");
// 
//     public static void cleanUpTestFiles() throws IOException {
//         DirectoryStream<Path> filePaths = Files.newDirectoryStream(TEMP_PATH);
// 
//         for (Path f : filePaths) {
//             if (Files.exists(f)) {
//                 Files.delete(f);
//             }
//         }
//     }
// 
//     public static void createTestDirectory() throws IOException {
//         if (!Files.exists(TEMP_PATH)) {
//             Files.createDirectory(TEMP_PATH);
//         }
//     }
// }


import com.jordanwilliams.heftydb.test.helper.TestFileHelper;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import java.io.IOException;
/*
 * Copyright (c) 2014. Jordan Williams
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.jordanwilliams.heftydb.test.base;



public class FileTest {

    @BeforeClass
    public static void beforeClass() throws IOException {
        TestFileHelper.createTestDirectory();
        TestFileHelper.cleanUpTestFiles();
    }

// Path: src/test/java/com/jordanwilliams/heftydb/test/helper/TestFileHelper.java
// public class TestFileHelper {
// 
//     public static final Path TEMP_PATH = Paths.get("/tmp/heftytest");
// 
//     public static void cleanUpTestFiles() throws IOException {
//         DirectoryStream<Path> filePaths = Files.newDirectoryStream(TEMP_PATH);
// 
//         for (Path f : filePaths) {
//             if (Files.exists(f)) {
//                 Files.delete(f);
//             }
//         }
//     }
// 
//     public static void createTestDirectory() throws IOException {
//         if (!Files.exists(TEMP_PATH)) {
//             Files.createDirectory(TEMP_PATH);
//         }
//     }
// }


// Path: src/test/java/com/jordanwilliams/heftydb/test/base/FileTest.java
import com.jordanwilliams.heftydb.test.helper.TestFileHelper;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import java.io.IOException;

/*
 * Copyright (c) 2014. Jordan Williams
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.jordanwilliams.heftydb.test.base;



public class FileTest {

    @BeforeClass
    public static void beforeClass() throws IOException {
        TestFileHelper.createTestDirectory();
        TestFileHelper.cleanUpTestFiles();
    }

    @AfterClass