Search in sources :

Example 1 with ObjRepo

use of org.wso2.ballerinalang.compiler.packaging.repo.ObjRepo in project ballerina by ballerina-lang.

the class RepoTest method testProjectObjRepo.

@Test
public void testProjectObjRepo() {
    PackageID pkg = newPackageID("my_org", "my.pkg", "1.2.3");
    ObjRepo subject = new ObjRepo((PathConverter) null);
    Patten patten = subject.calculate(pkg);
    Assert.assertEquals(patten.toString(), "$/repo/my_org/my.pkg/1.2.3/obj/my.pkg.balo");
}
Also used : PackageID(org.ballerinalang.model.elements.PackageID) ObjRepo(org.wso2.ballerinalang.compiler.packaging.repo.ObjRepo) Patten(org.wso2.ballerinalang.compiler.packaging.Patten) Test(org.testng.annotations.Test)

Aggregations

PackageID (org.ballerinalang.model.elements.PackageID)1 Test (org.testng.annotations.Test)1 Patten (org.wso2.ballerinalang.compiler.packaging.Patten)1 ObjRepo (org.wso2.ballerinalang.compiler.packaging.repo.ObjRepo)1