void () { Module m = createModule("a.iml", StdModuleTypes.JAVA); VirtualFile libraryRoot = addLibrary(m, DependencyScope.PROVIDED); VirtualFile[] runtimeClasspath = getRuntimeClasspath(m); assertEmpty(runtimeClasspath); VirtualFile[] compilationClasspath = getCompilationClasspath(m); assertOrderedEquals(compilationClasspath, libraryRoot); VirtualFile libraryClass = myFixture.createFile("lib/Test.class"); assertTrue(m.getModuleWithDependenciesAndLibrariesScope(true).contains(libraryClass)); assertTrue(m.getModuleWithDependenciesAndLibrariesScope(false).contains(libraryClass)); assertTrue(m.getModuleRuntimeScope(true).contains(libraryClass)); assertTrue(m.getModuleRuntimeScope(false).contains(libraryClass)); }