|
|
@@ -43,8 +43,9 @@ |
|
|
|
package org.eclipse.jgit.gitrepo; |
|
|
|
|
|
|
|
import static org.junit.Assert.assertTrue; |
|
|
|
import static java.nio.charset.StandardCharsets.UTF_8; |
|
|
|
|
|
|
|
import java.io.StringBufferInputStream; |
|
|
|
import java.io.ByteArrayInputStream; |
|
|
|
import java.util.HashSet; |
|
|
|
import java.util.Set; |
|
|
|
|
|
|
@@ -77,7 +78,7 @@ public class ManifestParserTest { |
|
|
|
|
|
|
|
ManifestParser parser = new ManifestParser( |
|
|
|
null, null, "master", baseUrl, null, null); |
|
|
|
parser.read(new StringBufferInputStream(xmlContent.toString())); |
|
|
|
parser.read(new ByteArrayInputStream(xmlContent.toString().getBytes(UTF_8))); |
|
|
|
// Unfiltered projects should have them all. |
|
|
|
results.clear(); |
|
|
|
results.add("foo"); |