Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2010-07-20 17:33:47 -0400
committerStephan Herrmann2010-07-20 17:33:47 -0400
commit0ce4260e87a722cbd79144b109595922c35a02e9 (patch)
tree455885dadd070845abb3b8ad0f49c90af1dff94b /org.eclipse.jdt.core.tests.model
parent4466499233a2af91d9393f72d199bb1803f96aa4 (diff)
downloadorg.eclipse.objectteams-0ce4260e87a722cbd79144b109595922c35a02e9.tar.gz
org.eclipse.objectteams-0ce4260e87a722cbd79144b109595922c35a02e9.tar.xz
org.eclipse.objectteams-0ce4260e87a722cbd79144b109595922c35a02e9.zip
change test harness to challenge the chached options.
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/JavaSearchBugsTests.java42
1 files changed, 21 insertions, 21 deletions
diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java
index 5185a97a9..79ef00517 100644
--- a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java
+++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java
@@ -10965,9 +10965,9 @@ public void testBug286379c() throws CoreException {
System.out.println("================================================================================");
System.out.println("Starting test JavaSearchBugTests.testBug286379c()...");
System.out.println(" - Options at test start:");
- System.out.println(" + Task tags: " + JavaCore.getOption(JavaCore.COMPILER_TASK_TAGS));
- System.out.println(" + Task priorities: " + JavaCore.getOption(JavaCore.COMPILER_TASK_PRIORITIES));
- System.out.println(" + Forbidden reference: " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
+ System.out.println(" + Task tags: " + JavaCore.getOptions().get(JavaCore.COMPILER_TASK_TAGS));
+ System.out.println(" + Task priorities: " + JavaCore.getOptions().get(JavaCore.COMPILER_TASK_PRIORITIES));
+ System.out.println(" + Forbidden reference: " + JavaCore.getOptions().get(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
IContentType javaContentType = Platform.getContentTypeManager().getContentType(JavaCore.JAVA_SOURCE_CONTENT_TYPE);
TestResourceChangeListener changeListener = new TestResourceChangeListener();
@@ -11012,17 +11012,17 @@ public void testBug286379c() throws CoreException {
// print statement to debug random failures of this test
System.out.println(" - Options before first exit:");
- System.out.println(" + Task tags: " + JavaCore.getOption(JavaCore.COMPILER_TASK_TAGS));
- System.out.println(" + Task priorities: " + JavaCore.getOption(JavaCore.COMPILER_TASK_PRIORITIES));
- System.out.println(" + Forbidden reference: " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
+ System.out.println(" + Task tags: " + JavaCore.getOptions().get(JavaCore.COMPILER_TASK_TAGS));
+ System.out.println(" + Task priorities: " + JavaCore.getOptions().get(JavaCore.COMPILER_TASK_PRIORITIES));
+ System.out.println(" + Forbidden reference: " + JavaCore.getOptions().get(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
// Restart to let the indexes to be refreshed
simulateExit();
simulateRestart();
// print statement to debug random failures of this test
System.out.println(" - Options after first restart:");
- System.out.println(" + Task tags: " + JavaCore.getOption(JavaCore.COMPILER_TASK_TAGS));
- System.out.println(" + Task priorities: " + JavaCore.getOption(JavaCore.COMPILER_TASK_PRIORITIES));
- System.out.println(" + Forbidden reference: " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
+ System.out.println(" + Task tags: " + JavaCore.getOptions().get(JavaCore.COMPILER_TASK_TAGS));
+ System.out.println(" + Task priorities: " + JavaCore.getOptions().get(JavaCore.COMPILER_TASK_PRIORITIES));
+ System.out.println(" + Forbidden reference: " + JavaCore.getOptions().get(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
waitUntilIndexesReady();
// Search for the new type with new extension
@@ -11044,17 +11044,17 @@ public void testBug286379c() throws CoreException {
// print statement to debug random failures of this test
System.out.println(" - Options before second exit:");
- System.out.println(" + Task tags: " + JavaCore.getOption(JavaCore.COMPILER_TASK_TAGS));
- System.out.println(" + Task priorities: " + JavaCore.getOption(JavaCore.COMPILER_TASK_PRIORITIES));
- System.out.println(" + Forbidden reference: " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
+ System.out.println(" + Task tags: " + JavaCore.getOptions().get(JavaCore.COMPILER_TASK_TAGS));
+ System.out.println(" + Task priorities: " + JavaCore.getOptions().get(JavaCore.COMPILER_TASK_PRIORITIES));
+ System.out.println(" + Forbidden reference: " + JavaCore.getOptions().get(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
// Restarting should update the index file to remove the references of any .torem files
simulateExit();
simulateRestart();
// print statement to debug random failures of this test
System.out.println(" - Options after second restart:");
- System.out.println(" + Task tags: " + JavaCore.getOption(JavaCore.COMPILER_TASK_TAGS));
- System.out.println(" + Task priorities: " + JavaCore.getOption(JavaCore.COMPILER_TASK_PRIORITIES));
- System.out.println(" + Forbidden reference: " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
+ System.out.println(" + Task tags: " + JavaCore.getOptions().get(JavaCore.COMPILER_TASK_TAGS));
+ System.out.println(" + Task priorities: " + JavaCore.getOptions().get(JavaCore.COMPILER_TASK_PRIORITIES));
+ System.out.println(" + Forbidden reference: " + JavaCore.getOptions().get(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
waitUntilIndexesReady();
// Search for the new type with new extension
@@ -11068,18 +11068,18 @@ public void testBug286379c() throws CoreException {
null);
assertSearchResults("No search results expected", "", collector);
System.out.println(" - Options after search:");
- System.out.println(" + Task tags: " + JavaCore.getOption(JavaCore.COMPILER_TASK_TAGS));
- System.out.println(" + Task priorities: " + JavaCore.getOption(JavaCore.COMPILER_TASK_PRIORITIES));
- System.out.println(" + Forbidden reference: " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
+ System.out.println(" + Task tags: " + JavaCore.getOptions().get(JavaCore.COMPILER_TASK_TAGS));
+ System.out.println(" + Task priorities: " + JavaCore.getOptions().get(JavaCore.COMPILER_TASK_PRIORITIES));
+ System.out.println(" + Forbidden reference: " + JavaCore.getOptions().get(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
} finally {
getWorkspace().removeResourceChangeListener(changeListener);
if (javaContentType != null)
javaContentType.removeFileSpec("torem", IContentType.FILE_EXTENSION_SPEC);
deleteProject("P");
System.out.println(" - Options at test end:");
- System.out.println(" + Task tags: " + JavaCore.getOption(JavaCore.COMPILER_TASK_TAGS));
- System.out.println(" + Task priorities: " + JavaCore.getOption(JavaCore.COMPILER_TASK_PRIORITIES));
- System.out.println(" + Forbidden reference: " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
+ System.out.println(" + Task tags: " + JavaCore.getOptions().get(JavaCore.COMPILER_TASK_TAGS));
+ System.out.println(" + Task priorities: " + JavaCore.getOptions().get(JavaCore.COMPILER_TASK_PRIORITIES));
+ System.out.println(" + Forbidden reference: " + JavaCore.getOptions().get(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
System.out.println("================================================================================");
}
}

Back to the top