package net.unit8.falchion;

import org.junit.Test;

import java.io.File;

import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;

/**
 * @author syobochim
 */
public class ContainerTest {

    @Test
    public void createClasspathWithBaseDirAndAplVersion() throws Exception {
        Container sut = new Container(1);
        String basePath = new File(ContainerTest.class.getClassLoader().getResource("containerTestResources").getPath())
                .getAbsolutePath();

        String versionFolder = basePath + File.separator + "0.1.0" + File.separator;
        assertThat(sut.createClasspath(basePath, "0.1.0"),
                is(basePath + ":" + versionFolder + "applicationA.jar:"
                        + versionFolder + "subDir" + File.separator + "applicationB.jar"));
        assertThat(sut.createClasspath(basePath, "0.1.1"), is(basePath));
    }

    @Test
    public void returnBaseDirWhenFileNotFound() throws Exception {
        Container sut = new Container(1);
        String basePath = new File(ContainerTest.class.getClassLoader().getResource("containerTestResources").getPath())
                .getAbsolutePath();
        assertThat(sut.createClasspath(basePath, "0.2.0"), is(basePath));
    }
}
@@ -639,45 +639,112 @@
 0%22),
-%0A                is(basePath + %22:%22 + 
+ startsWith(basePath + %22:%22));%0A        assertThat(sut.createClasspath(basePath, %220.1.0%22), containsString(
 vers
@@ -772,18 +772,20 @@
 ionA.jar
-:
 %22
+));
 %0A       
@@ -777,32 +777,83 @@
 jar%22));%0A        
+assertThat(sut.createClasspath(basePath, %220.1.0%22),%0A
                 
@@ -852,18 +852,31 @@
         
-+ 
+containsString(
 versionF

Change assert, because the order of filepath is not guaranteed.