diff options
author | Jay Arthanareeswaran | 2018-02-20 16:45:18 +0000 |
---|---|---|
committer | Jay Arthanareeswaran | 2018-02-28 03:50:17 +0000 |
commit | 3007f12f1412965a4ae1f913a1b2ef3ff2790433 (patch) | |
tree | 44e36c6707fb8c04652f47dd5bec6ac526febcdd /org.eclipse.jdt.core.tests.model | |
parent | 306563b4ad40257327a8f9e2d25d9beab64f0084 (diff) | |
download | eclipse.jdt.core-3007f12f1412965a4ae1f913a1b2ef3ff2790433.tar.gz eclipse.jdt.core-3007f12f1412965a4ae1f913a1b2ef3ff2790433.tar.xz eclipse.jdt.core-3007f12f1412965a4ae1f913a1b2ef3ff2790433.zip |
Bug 528818 - [9][JUnit 5] Cannot select a test method as
IType.resolveType(..) throws Java Model Exception
Change-Id: I5dfb27468878c307b6aaad61ee7a6a48aeae4c59
Signed-off-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
Diffstat (limited to 'org.eclipse.jdt.core.tests.model')
-rw-r--r-- | org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/TypeResolveTests.java | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/TypeResolveTests.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/TypeResolveTests.java index 3e03526774..d2cfc18ee2 100644 --- a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/TypeResolveTests.java +++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/TypeResolveTests.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2017 IBM Corporation and others. + * Copyright (c) 2000, 2018 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -122,7 +122,7 @@ public void setUpSuite() throws Exception { } static { // TESTS_NUMBERS = new int[] { 182, 183 }; -// TESTS_NAMES = new String[] { "testParamAnnotations4" }; +// TESTS_NAMES = new String[] { "test528818a" }; } public static Test suite() { return buildModelTestSuite(TypeResolveTests.class); @@ -1200,4 +1200,17 @@ public void test479963a() throws CoreException, IOException { deleteProject("P"); } } +public void test528818a() throws CoreException, IOException { + try { + IJavaProject project = createJava9Project("P"); + waitForAutoBuild(); + IType type = project.findType("java.lang.annotation.Target"); + assertNotNull("Type should not be null", type); + String[][] resolveType = type.resolveType("java.lang.Object"); + assertNotNull("Type should not be null", resolveType); + + } finally { + deleteProject("P"); + } +} } |