Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2006, 2016 IBM Corporation and others.
* Copyright (c) 2006, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand All @@ -16,6 +16,7 @@

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import java.io.IOException;
import java.io.Reader;
Expand Down Expand Up @@ -76,7 +77,7 @@ private void verify(String input, String expectedOutput, int styleRangeCount) th
StyleRange range2= ranges.get(i + 1);

if (range1.start + range1.length > range2.start) {
assertTrue("StyleRanges overlap", false);
fail("StyleRanges overlap");
}
}

Expand Down Expand Up @@ -108,7 +109,7 @@ private void verify(String input, String expectedOutput, StyleRange[] styleRange
StyleRange range2= ranges.get(i + 1);

if (range1.start + range1.length > range2.start) {
assertTrue("StyleRanges overlap", false);
fail("StyleRanges overlap");
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/org.eclipse.text.tests/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Plugin.name
Bundle-SymbolicName: org.eclipse.text.tests
Bundle-Version: 3.14.600.qualifier
Bundle-Version: 3.14.700.qualifier
Bundle-Vendor: %Plugin.providerName
Bundle-Localization: plugin
Export-Package:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2007, 2015 IBM Corporation and others.
* Copyright (c) 2007, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand All @@ -13,7 +13,7 @@
*******************************************************************************/
package org.eclipse.text.tests;

import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down Expand Up @@ -139,7 +139,7 @@ private void assertEquals(Annotation[] expected, Annotation[] actual, IAnnotatio
for (Annotation a : actual) {
if (!expectedSet.contains(a)) {
String message = "Unexpected annotation " + getName(a) + " in result with models [" + getAnnotationModelNames(insideModel, beforeModel, afterModel) + "]";
assertTrue(message, false);
fail(message);
}
expectedSet.remove(a);
}
Expand All @@ -149,7 +149,7 @@ private void assertEquals(Annotation[] expected, Annotation[] actual, IAnnotatio
for (Annotation missing : expectedSet) {
message= message + "\n" + getName(missing);
}
assertTrue(message, false);
fail(message);
}
}

Expand Down
Loading
Loading