PT #160962428: Simple unit test

This commit is contained in:
BoykoAlex
2019-01-16 17:54:19 -05:00
parent b794f275d3
commit f893da12f5
2 changed files with 104 additions and 18 deletions

View File

@@ -1015,6 +1015,17 @@ public class ApplicationPropertiesEditorTest extends AbstractPropsEditorTest {
);
}
@Test public void testUnknownPropertyCreateMetadataQuickfix() throws Exception {
// Need something to be in the index otherwise reconciler doesn't looks at the
// AST
data("error.title", "java.lang.String", null, "Error's title");
Editor editor = harness.newEditor("# a comment\n" + "error.something=foo\n");
Diagnostic problem = editor.assertProblem("something");
editor.assertFirstQuickfix(problem, "Create metadata for `error.something`");
}
@Test public void testDeprecatedBeanPropertyReconcile() throws Exception {
IJavaProject p = createPredefinedMavenProject("tricky-getters-boot-1.3.1-app");
useProject(p);