package com.semperos.screwdriver.pipeline;

/**
 * Created with IntelliJ IDEA.
 * User: semperos
 * Date: 2/6/13
 * Time: 4:43 PM
 * To change this template use File | Settings | File Templates.
 */
public class PipelineEnvironmentTest {
    public void testGetAssetPaths() throws Exception {

    }

    public void testGetAssetExtensions() throws Exception {

    }

    public void testGetAllAssets() throws Exception {

    }
}

@@ -41,333 +41,1396 @@
 e;%0A%0A
-/**%0A * Created with IntelliJ IDEA.%0A * User: semperos%0A * Date: 2/6/13%0A * Time: 4:43 PM%0A * To change this template use File %7C Settings %7C File Templates.%0A */%0Apublic class PipelineEnvironmentTest %7B%0A    public void testGetAssetPaths() throws Exception %7B%0A%0A    %7D%0A%0A    public void testGetAssetExtensions() throws Exception %7B%0A
+import org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.io.File;%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport static junit.framework.Assert.assertEquals;%0Aimport static junit.framework.Assert.assertTrue;%0A%0A/**%0A * Created with IntelliJ IDEA.%0A * User: semperos%0A * Date: 2/6/13%0A * Time: 4:43 PM%0A * To change this template use File %7C Settings %7C File Templates.%0A */%0Apublic class PipelineEnvironmentTest %7B%0A    private PipelineEnvironment pe;%0A    @Before%0A    public void setUp() throws Exception %7B%0A        this.pe = new PipelineEnvironment(new File(%0A                System.getProperty(%22user.dir%22),%0A                /**%0A                 * @todo Set base path up correctly%0A                 */%0A                %22src/test/resources/com/semperos/screwdriver/sample%22));%0A    %7D%0A%0A    @Test%0A    public void testGetAssetPaths() throws Exception %7B%0A        HashMap%3CAssetType, ArrayList%3CFile%3E%3E allPaths = pe.getAssetPaths();%0A        assertTrue(allPaths.size() %3E= 3);%0A        for (Map.Entry%3CAssetType, ArrayList%3CFile%3E%3E path : allPaths.entrySet()) %7B%0A            for (File f : path.getValue()) %7B%0A                assertTrue(f.exists());%0A            %7D%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void testGetAssetExtensions() throws Exception %7B%0A        HashMap%3CAssetType, ArrayList%3CString%3E%3E extensions = pe.getAssetExtensions();%0A        assertTrue(extensions.size() %3E= 2);
 %0A    %7D%0A%0A
     
@@ -1421,24 +1421,34 @@
  2);%0A    %7D%0A%0A
+    @Test%0A
     public v
@@ -1489,16 +1489,121 @@
 ption %7B%0A
+        ArrayList assets = pe.getAllAssets(AssetType.JAVASCRIPT);%0A        assertTrue(assets.size() %3E= 2);
 %0A    %7D%0A%7D

Add elementary tests for PipelineEnvironment asset paths