void (final String relativePath) { loadProject(relativePath); List<JpsTypedRunConfiguration<JpsApplicationRunConfigurationProperties>> configurations = ContainerUtil.newArrayList(myProject.getRunConfigurations(JpsApplicationRunConfigurationType.INSTANCE)); assertEquals(2, configurations.size()); JpsTypedRunConfiguration<JpsApplicationRunConfigurationProperties> shared = configurations.get(0); assertEquals("shared", shared.getName()); assertEquals("xxx.Main2", shared.getProperties().getMainClass()); JpsTypedRunConfiguration<JpsApplicationRunConfigurationProperties> main = configurations.get(1); assertEquals("Main", main.getName()); assertEquals("xxx.Main", main.getProperties().getMainClass()); List<JpsRunConfiguration> all = myProject.getRunConfigurations(); JpsRunConfiguration junit = findByName(all, "test"); JpsRunConfigurationType type = ((JpsTypedRunConfiguration)junit).getType(); assertEquals("JUnit", assertInstanceOf(type, JpsUnknownRunConfigurationType.class).getTypeId()); }