File tree Expand file tree Collapse file tree
org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050import org .eclipse .jdt .internal .core .JavaProject ;
5151import org .eclipse .jdt .internal .core .UserLibraryClasspathContainer ;
5252import org .eclipse .jdt .internal .core .builder .State ;
53+ import org .eclipse .jdt .internal .core .util .Messages ;
5354import org .eclipse .team .core .RepositoryProvider ;
5455
5556@ SuppressWarnings ({"rawtypes" , "unchecked" })
@@ -7434,9 +7435,10 @@ public void testBug539998() throws CoreException {
74347435
74357436 IJavaModelStatus status = JavaConventions .validateClasspath (proj , newCP , proj .getOutputLocation ());
74367437
7437- assertStatus ("should complain" ,
7438- "Project has only main sources but depends on project 'P1' which has only test sources." ,
7439- status );
7438+ final String expected = Messages .bind (Messages .classpath_main_only_project_depends_on_test_only_project ,
7439+ new String [] { proj .getElementName (), proj1TestOnly .getElementName () });
7440+
7441+ assertStatus ("should complain" , expected , status );
74407442 } finally {
74417443 this .deleteProjects (new String [] { "P1" , "P2" });
74427444 }
You can’t perform that action at this time.
0 commit comments