// Path: src/test/java/com/xti/jenkins/plugin/awslambda/TestUtil.java
// public class TestUtil {
//     public File getResource(String resourcePath){
//         ClassLoader classLoader = getClass().getClassLoader();
//         URL resource = classLoader.getResource(resourcePath);
//         if(resource != null){
//             try {
//                 File tempEcho = File.createTempFile("aws-lambda-plugin", "echo.zip");
//                 FileUtils.copyFile(new File(resource.getFile()), tempEcho);
//                 tempEcho.deleteOnExit();
//                 return tempEcho;
//             } catch (IOException e) {
//                 throw new IllegalStateException("Could not load " + resourcePath);
//             }
// 
//         } else {
//             throw new IllegalStateException("Could not load " + resourcePath);
//         }
//     }
// }
// 
// Path: src/main/java/com/xti/jenkins/plugin/awslambda/exception/LambdaDeployException.java
// public class LambdaDeployException extends AWSLambdaPluginException {
// 
//     public LambdaDeployException(String message) {
//         super(message);
//     }
// 
//     public LambdaDeployException(String message, Throwable cause) {
//         super(message, cause);
//     }
// }


import com.xti.jenkins.plugin.awslambda.TestUtil;
import com.xti.jenkins.plugin.awslambda.exception.LambdaDeployException;
import hudson.Launcher;
import hudson.model.AbstractBuild;
import hudson.model.BuildListener;
import hudson.model.FreeStyleProject;
import hudson.util.OneShotEvent;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.TestBuilder;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.zip.ZipFile;
import static org.junit.Assert.*;
package com.xti.jenkins.plugin.awslambda.service;




public class WorkSpaceZipperTest {

    @Rule
    public JenkinsRule j = new JenkinsRule();

// Path: src/test/java/com/xti/jenkins/plugin/awslambda/TestUtil.java
// public class TestUtil {
//     public File getResource(String resourcePath){
//         ClassLoader classLoader = getClass().getClassLoader();
//         URL resource = classLoader.getResource(resourcePath);
//         if(resource != null){
//             try {
//                 File tempEcho = File.createTempFile("aws-lambda-plugin", "echo.zip");
//                 FileUtils.copyFile(new File(resource.getFile()), tempEcho);
//                 tempEcho.deleteOnExit();
//                 return tempEcho;
//             } catch (IOException e) {
//                 throw new IllegalStateException("Could not load " + resourcePath);
//             }
// 
//         } else {
//             throw new IllegalStateException("Could not load " + resourcePath);
//         }
//     }
// }
// 
// Path: src/main/java/com/xti/jenkins/plugin/awslambda/exception/LambdaDeployException.java
// public class LambdaDeployException extends AWSLambdaPluginException {
// 
//     public LambdaDeployException(String message) {
//         super(message);
//     }
// 
//     public LambdaDeployException(String message, Throwable cause) {
//         super(message, cause);
//     }
// }


// Path: src/test/java/com/xti/jenkins/plugin/awslambda/service/WorkSpaceZipperTest.java
import com.xti.jenkins.plugin.awslambda.TestUtil;
import com.xti.jenkins.plugin.awslambda.exception.LambdaDeployException;
import hudson.Launcher;
import hudson.model.AbstractBuild;
import hudson.model.BuildListener;
import hudson.model.FreeStyleProject;
import hudson.util.OneShotEvent;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.TestBuilder;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.zip.ZipFile;
import static org.junit.Assert.*;

package com.xti.jenkins.plugin.awslambda.service;




public class WorkSpaceZipperTest {

    @Rule
    public JenkinsRule j = new JenkinsRule();

    private TestUtil testUtil = new TestUtil();