package eu.pepot.eu.spark.inputsplitter.helper

import java.io.File

import eu.pepot.eu.spark.inputsplitter.common.file.FileDetails
import Helper._

object TestsHelper {

  def resourcesBaseDir(subDir: String) = {
    toStringPath("src/test/resources/eu/pepot/eu/spark/inputsplitter/samples", subDir)
  }

  def resourcesBaseDirWithAbsolutePath(subDir: String) = {
    new File("src/test/resources/eu/pepot/eu/spark/inputsplitter/samples/" + subDir).getAbsolutePath
  }

  def toFDs(s: String): FileDetails = {
    FileDetails(s, new File(s).length())
  }


}

package eu.pepot.eu.spark.inputsplitter.helper

import java.io.File

import eu.pepot.eu.spark.inputsplitter.common.file.FileDetails
import Helper._

object TestsHelper {

  def resourcesBaseDir(subDir: String) = {
    toStringPath("src/test/resources/eu/pepot/eu/spark/inputsplitter/samples", subDir)
  }

  def resourcesBaseDirWithAbsolutePath(subDir: String) = {
    new File("src/test/resources/eu/pepot/eu/spark/inputsplitter/samples", subDir).getAbsolutePath
  }

  def toFDs(s: String): FileDetails = {
    FileDetails(s, new File(s).length())
  }


}

Use better File(parent, child) constructor
Use better File(parent, child) constructor
