|
|
|
|
|
|
|
|
package org.eclipse.jgit.gitrepo; |
|
|
package org.eclipse.jgit.gitrepo; |
|
|
|
|
|
|
|
|
import static org.junit.Assert.assertTrue; |
|
|
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.HashSet; |
|
|
import java.util.Set; |
|
|
import java.util.Set; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ManifestParser parser = new ManifestParser( |
|
|
ManifestParser parser = new ManifestParser( |
|
|
null, null, "master", baseUrl, null, null); |
|
|
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. |
|
|
// Unfiltered projects should have them all. |
|
|
results.clear(); |
|
|
results.clear(); |
|
|
results.add("foo"); |
|
|
results.add("foo"); |