use of org.wso2.ballerinalang.compiler.packaging.repo.NonSysRepo in project ballerina by ballerina-lang.
the class RepoTest method testSystemOrgIsReserved.
@Test
public void testSystemOrgIsReserved() {
PackageID pkg = newPackageID("ballerina", "any.pkg", "10.2.3");
Repo subject = new NonSysRepo<String>(null) {
@Override
public Patten calculateNonSysPkg(PackageID pkg) {
Assert.fail("Tried to calculate path for system packages");
return null;
}
};
Patten patten = subject.calculate(pkg);
Assert.assertEquals(patten, Patten.NULL);
}
Aggregations