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())
  }


}

--- 
+++ 
@@ -12,7 +12,7 @@
   }
 
   def resourcesBaseDirWithAbsolutePath(subDir: String) = {
-    new File("src/test/resources/eu/pepot/eu/spark/inputsplitter/samples/" + subDir).getAbsolutePath
+    new File("src/test/resources/eu/pepot/eu/spark/inputsplitter/samples", subDir).getAbsolutePath
   }
 
   def toFDs(s: String): FileDetails = {
Use better File(parent, child) constructor
