Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayaprakash Arthanareeswaran2013-01-21 09:06:25 +0000
committerJayaprakash Arthanareeswaran2013-02-05 19:19:31 +0000
commit4aa2e44707284dfe9ced4a8fc9fd3c13b62ac1e8 (patch)
treeff1184352a0c1f4d791a0d7efbf64ac8cad2fe58
parente5caced2c0e20a52ae801fdefb5cb7c201c72ca4 (diff)
downloadeclipse.jdt.core-4aa2e44707284dfe9ced4a8fc9fd3c13b62ac1e8.tar.gz
eclipse.jdt.core-4aa2e44707284dfe9ced4a8fc9fd3c13b62ac1e8.tar.xz
eclipse.jdt.core-4aa2e44707284dfe9ced4a8fc9fd3c13b62ac1e8.zip
Fix for bug 398490 - Updating tests
-rw-r--r--org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/AttachSourceTests.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/AttachSourceTests.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/AttachSourceTests.java
index ee7353cea0..82c0dc8cf1 100644
--- a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/AttachSourceTests.java
+++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/AttachSourceTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2013 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
@@ -351,15 +351,14 @@ public void testClassFileGetElementAt04() throws JavaModelException {
/*
* Ensures that the source of a .class file is implicetely attached when prj=src=bin
* (regression test for bug 41444 [navigation] error dialog on opening class file)
+ *
+ * Note: The test case is being modified as part of fix for bug
+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=398490
*/
public void testClassFileInOutput() throws CoreException {
IClassFile classFile = getClassFile("AttachSourceTests/src/A.class");
String source = classFile.getSource();
- assertSourceEquals(
- "Unexpected source",
- "public class A {\n" +
- "}",
- source);
+ assertNull("Unexpected source", source);
}
/**
* Retrieves the source code for "A.class", which is

Back to the top