void () { loadProject("plugins/devkit/jps-plugin/testData/pluginProject/pluginProject.ipr"); JpsModule module = assertOneElement(myProject.getModules()); assertEquals(JpsPluginModuleType.INSTANCE, module.getModuleType()); JpsTypedModule<JpsSimpleElement<JpsPluginModuleProperties>> pluginModule = module.asTyped(JpsPluginModuleType.INSTANCE); assertNotNull(pluginModule); String url = pluginModule.getProperties().getData().getPluginXmlUrl(); assertEquals(getUrl("META-INF/plugin.xml"), url); JpsTypedLibrary<JpsSdk<JpsDummyElement>> javaSdk = myModel.getGlobal().addSdk("1.6", null, null, JpsJavaSdkType.INSTANCE); JpsSimpleElement<JpsIdeaSdkProperties> properties = JpsElementFactory.getInstance().createSimpleElement(new JpsIdeaSdkProperties(null, "1.6")); JpsTypedLibrary<JpsSdk<JpsSimpleElement<JpsIdeaSdkProperties>>> pluginSdk = myModel.getGlobal() .addSdk("IDEA plugin SDK", null, null, JpsIdeaSdkType.INSTANCE, properties); assertSame(pluginSdk.getProperties(), module.getSdk(JpsIdeaSdkType.INSTANCE)); assertSame(javaSdk.getProperties(), module.getSdk(JpsJavaSdkType.INSTANCE)); }