HEAD - Fix test failure
diff --git a/apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/problems/tests/ApiProblemFactoryTests.java b/apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/problems/tests/ApiProblemFactoryTests.java
index 276a213..e76fd07 100644
--- a/apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/problems/tests/ApiProblemFactoryTests.java
+++ b/apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/problems/tests/ApiProblemFactoryTests.java
@@ -184,23 +184,23 @@
*/
public void testGetSinceTagMessages() {
IApiProblem problem = ApiProblemFactory.newApiSinceTagProblem("",
- new String[] {"A", "B"}, null, null, -1, -1, -1, IElementDescriptor.T_RESOURCE, IApiProblem.SINCE_TAG_INVALID);
+ new String[] {"A", "B", "C"}, null, null, -1, -1, -1, IElementDescriptor.T_RESOURCE, IApiProblem.SINCE_TAG_INVALID);
String message = problem.getMessage();
assertNotNull("the message should not be null", message);
assertFalse("the message should be found", message.equals(fDefaultMessage));
- assertTrue("the message should be correct", message.equals(MessageFormat.format("Invalid @since tag A; the expected @since tag value is B", new String[0])));
+ assertTrue("the message should be correct", message.equals(MessageFormat.format("Invalid @since {0} tag on {2}; expecting @since {1}", new String[] {"A", "B", "C"})));
problem = ApiProblemFactory.newApiSinceTagProblem("",
- new String[] {"A"}, null, null, -1, -1, -1, IElementDescriptor.T_RESOURCE, IApiProblem.SINCE_TAG_MALFORMED);
+ new String[] {"A", "B"}, null, null, -1, -1, -1, IElementDescriptor.T_RESOURCE, IApiProblem.SINCE_TAG_MALFORMED);
message = problem.getMessage();
assertNotNull("the message should not be null", message);
assertFalse("the message should be found", message.equals(fDefaultMessage));
- assertTrue("the message should be correct", message.equals(MessageFormat.format("Invalid @since tag A; the @since tag can only have two fragments", new String[0])));
+ assertTrue("the message should be correct", message.equals(MessageFormat.format("Invalid @since tag {0} on {1}; expecting only two fragments", new String[] {"A", "B"})));
problem = ApiProblemFactory.newApiSinceTagProblem("",
- new String[0], null, null, -1, -1, -1, IElementDescriptor.T_RESOURCE, IApiProblem.SINCE_TAG_MISSING);
+ new String[] {"A"}, null, null, -1, -1, -1, IElementDescriptor.T_RESOURCE, IApiProblem.SINCE_TAG_MISSING);
message = problem.getMessage();
assertNotNull("the message should not be null", message);
assertFalse("the message should be found", message.equals(fDefaultMessage));
- assertTrue("the message should be correct", message.equals(MessageFormat.format("Missing @since tag", new String[0])));
+ assertTrue("the message should be correct", message.equals(MessageFormat.format("Missing @since tag on {0}", new String[] {"A"})));
}
/**