use of org.jetbrains.kotlin.descriptors.PackageViewDescriptor in project kotlin by JetBrains.
the class AbstractResolveByStubTest method performTest.
private void performTest(@NotNull String path, boolean checkPrimaryConstructors, boolean checkPropertyAccessors) {
KtFile file = (KtFile) getFile();
ModuleDescriptor module = ResolutionUtils.findModuleDescriptor(file);
PackageViewDescriptor packageViewDescriptor = module.getPackage(new FqName("test"));
Assert.assertFalse(packageViewDescriptor.isEmpty());
File fileToCompareTo = new File(FileUtil.getNameWithoutExtension(path) + ".txt");
RecursiveDescriptorComparator.validateAndCompareDescriptorWithFile(packageViewDescriptor, RecursiveDescriptorComparator.DONT_INCLUDE_METHODS_OF_OBJECT.filterRecursion(RecursiveDescriptorComparator.SKIP_BUILT_INS_PACKAGES).checkPrimaryConstructors(checkPrimaryConstructors).checkPropertyAccessors(checkPropertyAccessors).withValidationStrategy(errorTypesForbidden()), fileToCompareTo);
}
Aggregations