package org.pitest.util;

import static org.assertj.core.api.Assertions.assertThat;

import java.io.File;
import java.io.IOException;

import org.junit.Test;

public class ManifestUtilsTest {

  @Test
  public void shouldParseTheManifestsItCreates() throws IOException {
    File actual = ManifestUtils.createClasspathJarFile("/some/path/foo.jar:/some/path/");
    assertThat(ManifestUtils.readClasspathManifest(actual))
    .containsExactly(new File("/some/path/foo.jar"), new File("/some/path/"));
  }

}

@@ -316,25 +316,24 @@
 athJarFile(%22
-/
 some/path/fo
@@ -341,10 +341,34 @@
 .jar
-:/
+%22 + File.pathSeparator + %22
 some
@@ -458,16 +458,29 @@
 Exactly(
+%0A            
 new File
@@ -473,33 +473,32 @@
       new File(%22
-/
 some/path/foo.ja
@@ -504,9 +504,39 @@
 ar%22)
-,
+.getAbsoluteFile(),%0A           
  new
@@ -542,17 +542,16 @@
 w File(%22
-/
 some/pat
@@ -554,16 +554,34 @@
 /path/%22)
+.getAbsoluteFile()
 );%0A  %7D%0A%0A

Make ManifestUtilsTest also work correctly on Windows