use of org.wso2.ballerinalang.compiler.packaging.repo.JarRepo in project ballerina by ballerina-lang.
the class JarIntegrationTest method balInsideJar.
@Test
public void balInsideJar() throws IOException {
Patten balPatten = new Patten(path("very"), Patten.WILDCARD_SOURCE);
JarRepo repo = new JarRepo(tempJar.toUri());
Converter<Path> subject = repo.getConverterInstance();
List<PackageSourceEntry> sources = balPatten.convertToSources(subject, null).collect(Collectors.toList());
Assert.assertEquals(sources.size(), 1);
Assert.assertEquals(sources.get(0).getCode(), BAL_CONTENT);
}
Aggregations