// Path: src/main/java/pl/domzal/junit/docker/rule/ex/InvalidVolumeFrom.java
// public class InvalidVolumeFrom extends IllegalStateException {
// 
//     public InvalidVolumeFrom(String message) {
//         super(message);
//     }
// 
// }


import static org.junit.Assert.*;
import java.util.Map;
import org.apache.commons.lang3.SystemUtils;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import pl.domzal.junit.docker.rule.ex.InvalidVolumeFrom;
package pl.domzal.junit.docker.rule;





@Category(test.category.Stable.class)
public class DockerRuleMountBuilderTest {

    @Test
    public void shouldAcceptValidDockerVolume() throws Exception {
        DockerRuleMountBuilder.assertValidMountFrom("/Users/someuser", "abcdef", true, false);
    }

    @Test
    public void shouldAcceptOsxHomePath() throws Exception {
        DockerRuleMountBuilder.assertValidMountFrom("/Users/someuser", "/Users/someuser/temp", true, false);
    }

// Path: src/main/java/pl/domzal/junit/docker/rule/ex/InvalidVolumeFrom.java
// public class InvalidVolumeFrom extends IllegalStateException {
// 
//     public InvalidVolumeFrom(String message) {
//         super(message);
//     }
// 
// }


// Path: src/test/java/pl/domzal/junit/docker/rule/DockerRuleMountBuilderTest.java
import static org.junit.Assert.*;
import java.util.Map;
import org.apache.commons.lang3.SystemUtils;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import pl.domzal.junit.docker.rule.ex.InvalidVolumeFrom;

package pl.domzal.junit.docker.rule;





@Category(test.category.Stable.class)
public class DockerRuleMountBuilderTest {

    @Test
    public void shouldAcceptValidDockerVolume() throws Exception {
        DockerRuleMountBuilder.assertValidMountFrom("/Users/someuser", "abcdef", true, false);
    }

    @Test
    public void shouldAcceptOsxHomePath() throws Exception {
        DockerRuleMountBuilder.assertValidMountFrom("/Users/someuser", "/Users/someuser/temp", true, false);
    }

    @Test(expected = InvalidVolumeFrom.class)