package com.boundary.sdk;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.net.URL;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.boundary.sdk.event.BaseScriptTest;

public class ScriptUtils {
	
	private static Logger LOG = LoggerFactory.getLogger(ScriptUtils.class);

	public ScriptUtils() {
	}
	
	/**
	 * Finds a script to be tested from 
	 * @param scriptName
	 * @return {@link File}
	 */
	static public FileReader getFile(String scriptPath) {
		ClassLoader loader = Thread.currentThread().getContextClassLoader();

		URL url = loader.getResource(scriptPath);
		assert(url == null);
		File f = new File(url.getFile());
		FileReader reader = null;
		try {
			reader = new FileReader(f);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
			LOG.error(e.getMessage());
		}
		return reader;
	}
}

@@ -17,16 +17,22 @@
 dary.sdk
+.event
 ;%0A%0Aimpor
@@ -196,54 +196,8 @@
 y;%0A%0A
-import com.boundary.sdk.event.BaseScriptTest;%0A
 %0Apub

Remove unused import