use of org.ballerinalang.plugins.idea.sdk.BallerinaSdkType in project ballerina by ballerina-lang.
the class BallerinaCodeInsightFixtureTestCase method createMockSdk.
@NotNull
private static Sdk createMockSdk(@NotNull String version) {
String homePath = new File(getTestDataPath("mockSdk-") + version + "/").getAbsolutePath();
BallerinaSdkType sdkType = BallerinaSdkType.getInstance();
ProjectJdkImpl sdk = new ProjectJdkImpl("Ballerina " + version, sdkType, homePath, version);
sdkType.setupSdkPaths(sdk);
sdk.setVersionString(version);
return sdk;
}
Aggregations