Add support for 'docker' attribute to CF editor
This commit is contained in:
@@ -10,19 +10,14 @@
|
||||
*******************************************************************************/
|
||||
package org.springframework.ide.vscode.boot.editor.harness;
|
||||
|
||||
import org.springframework.ide.vscode.boot.metadata.FuzzyMapPropertyInfo;
|
||||
import org.springframework.ide.vscode.boot.metadata.ProjectBasedPropertyIndexProvider;
|
||||
import org.springframework.ide.vscode.boot.metadata.PropertyInfo;
|
||||
import org.springframework.ide.vscode.boot.metadata.SpringPropertyIndexProvider;
|
||||
import org.springframework.ide.vscode.commons.util.FuzzyMap;
|
||||
|
||||
public class AdHocPropertyHarness {
|
||||
|
||||
private FuzzyMap<PropertyInfo> adHocProperties = new FuzzyMap<PropertyInfo>() {
|
||||
@Override
|
||||
protected String getKey(PropertyInfo entry) {
|
||||
return entry.getId();
|
||||
}
|
||||
};
|
||||
private FuzzyMap<PropertyInfo> adHocProperties = new FuzzyMapPropertyInfo();
|
||||
|
||||
protected final ProjectBasedPropertyIndexProvider adHocIndexProvider = project -> adHocProperties;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.springframework.ide.vscode.boot.editor.harness.PropertyIndexHarness;
|
||||
*
|
||||
*/
|
||||
public class IndexNavigatorTest {
|
||||
|
||||
|
||||
@Test
|
||||
public void testSimple() throws Exception {
|
||||
PropertyIndexHarness harness = indexHarness();
|
||||
|
||||
@@ -71,6 +71,39 @@ public class ApplicationYamlEditorTest extends AbstractPropsEditorTest {
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@Ignore //Ignored because this bug is not yet fixed so the test fails.
|
||||
@Test public void bug_GH_327() throws Exception {
|
||||
//See https://github.com/spring-projects/sts4/issues/327
|
||||
data("spring.resources.static-locations", "java.lang.String[]", null, "Blah");
|
||||
data("spring.devtools.restart.additional-paths", "java.util.List<java.lang.String>", null, "Blah blah");
|
||||
|
||||
Editor editor;
|
||||
|
||||
editor = harness.newEditor(
|
||||
"spring:\n" +
|
||||
" resources:\n" +
|
||||
" static_locations: []\n" +
|
||||
" devtools:\n" +
|
||||
" restart:\n" +
|
||||
" additional_paths: []\n"
|
||||
);
|
||||
editor.assertProblems(/*NONE*/);
|
||||
|
||||
//Also check whether reconciler understands the structure when inside of a 'relaxed' name key
|
||||
editor = harness.newEditor(
|
||||
"spring:\n" +
|
||||
" resources:\n" +
|
||||
" static_locations: not-a-list-1\n" +
|
||||
" devtools:\n" +
|
||||
" restart:\n" +
|
||||
" additional_paths: not-a-list-2\n"
|
||||
);
|
||||
editor.assertProblems(
|
||||
"not-a-list-1|XXXX", //TODO: fill in proper expected message instead of XXXX
|
||||
"not-a-list-2|XXXX" //TODO: fill in proper expected message instead of XXXX
|
||||
);
|
||||
}
|
||||
|
||||
@Test public void bug_165724475() throws Exception {
|
||||
//See:
|
||||
// https://www.pivotaltracker.com/story/show/165724475
|
||||
|
||||
Reference in New Issue
Block a user