Some refactorings towards a fix.

This commit is contained in:
Kris De Volder
2016-12-16 14:16:49 -08:00
parent edb2157827
commit e6c7ee2aaa
2 changed files with 87 additions and 11 deletions

View File

@@ -3155,6 +3155,35 @@ public class ApplicationYamlEditorTest extends AbstractPropsEditorTest {
}
/**
* TODO: Delete this tempotary test.
* This test is just one piece copied from another test to do more focussed debugging. If you find this test
* in the git repo, then it was committed by accident. So feel free to delete it.
*/
@Test public void testClasspathResourceCompletionTemp() throws Exception {
CachingValueProvider.TIMEOUT = Duration.ofSeconds(20);
useProject(createPredefinedMavenProject("empty-boot-1.3.0-app"));
data("my.nice.resource", "org.springframework.core.io.Resource", null, "A very nice resource.");
data("my.nice.list", "java.util.List<org.springframework.core.io.Resource>", null, "A nice list of resources.");
assertCompletionWithLabel(
"my:\n" +
" nice:\n" +
" list:\n"+
" - classpath:<*>\n"
,// ==========
"classpath:application.yml"
, // =>
"my:\n" +
" nice:\n" +
" list:\n"+
" - classpath:application.yml<*>\n"
);
}
@Test public void testClasspathResourceCompletion() throws Exception {
CachingValueProvider.TIMEOUT = Duration.ofSeconds(20);