void () { final JpsSdk<JpsDummyElement> sdk = getOrCreateJdk(); final String commonOutput = getAbsolutePath("out"); JpsModule moduleA = addModule("moduleA", new String[]{getAbsolutePath("moduleA/src")}, commonOutput, commonOutput, sdk); JpsModule moduleB = addModule("moduleB", new String[]{getAbsolutePath("moduleB/src")}, commonOutput, commonOutput, sdk); JpsModuleRootModificationUtil.addDependency(moduleB, moduleA); doTestBuild(1).assertSuccessful(); }