IDEA-156888 Simplify JDK setup for new projects

This commit is contained in:
Dmitry Avdeev
2017-01-16 19:55:06 +03:00
parent c616ee4941
commit dcc80075e1
4 changed files with 39 additions and 4 deletions
@@ -0,0 +1,32 @@
/*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.intellij.roots;
import com.intellij.openapi.roots.ui.configuration.JdkComboBox;
import com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectSdksModel;
import com.intellij.testFramework.LightPlatformTestCase;
/**
* @author Dmitry Avdeev
*/
public class JdkComboBoxTest extends LightPlatformTestCase {
public void testSuggestedSdks() throws Exception {
JdkComboBox comboBox = new JdkComboBox(new ProjectSdksModel(), null, null, null, true);
Object itemAt = comboBox.getItemAt(0);
System.out.println(itemAt);
}
}