Search in sources :

Example 6 with PathConverter

use of org.wso2.ballerinalang.compiler.packaging.converters.PathConverter in project ballerina by ballerina-lang.

the class RepoTest method testHomeRepo.

@Test
public void testHomeRepo() {
    PackageID pkg = newPackageID("my_org", "my.pkg", "10.2.3");
    HomeRepo subject = new HomeRepo((PathConverter) null);
    Patten patten = subject.calculate(pkg);
    Assert.assertEquals(patten.toString(), "$/repo/my_org/my.pkg/10.2.3/src/**~test~resources/*.bal");
}
Also used : PackageID(org.ballerinalang.model.elements.PackageID) Patten(org.wso2.ballerinalang.compiler.packaging.Patten) HomeRepo(org.wso2.ballerinalang.compiler.packaging.repo.HomeRepo) Test(org.testng.annotations.Test)

Aggregations

Test (org.testng.annotations.Test)6 Patten (org.wso2.ballerinalang.compiler.packaging.Patten)6 PackageID (org.ballerinalang.model.elements.PackageID)4 Path (java.nio.file.Path)2 PathConverter (org.wso2.ballerinalang.compiler.packaging.converters.PathConverter)2 CacheRepo (org.wso2.ballerinalang.compiler.packaging.repo.CacheRepo)1 HomeRepo (org.wso2.ballerinalang.compiler.packaging.repo.HomeRepo)1 ObjRepo (org.wso2.ballerinalang.compiler.packaging.repo.ObjRepo)1 ProjectSourceRepo (org.wso2.ballerinalang.compiler.packaging.repo.ProjectSourceRepo)1