Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'rpm/org.eclipse.linuxtools.rpm.ui.editor.tests/src/org/eclipse/linuxtools/internal/rpm/ui/editor/hyperlink/tests/URLHyperlinkWithMacroDetectorTest.java')
-rw-r--r--rpm/org.eclipse.linuxtools.rpm.ui.editor.tests/src/org/eclipse/linuxtools/internal/rpm/ui/editor/hyperlink/tests/URLHyperlinkWithMacroDetectorTest.java34
1 files changed, 17 insertions, 17 deletions
diff --git a/rpm/org.eclipse.linuxtools.rpm.ui.editor.tests/src/org/eclipse/linuxtools/internal/rpm/ui/editor/hyperlink/tests/URLHyperlinkWithMacroDetectorTest.java b/rpm/org.eclipse.linuxtools.rpm.ui.editor.tests/src/org/eclipse/linuxtools/internal/rpm/ui/editor/hyperlink/tests/URLHyperlinkWithMacroDetectorTest.java
index c497b97755..7e5dc467db 100644
--- a/rpm/org.eclipse.linuxtools.rpm.ui.editor.tests/src/org/eclipse/linuxtools/internal/rpm/ui/editor/hyperlink/tests/URLHyperlinkWithMacroDetectorTest.java
+++ b/rpm/org.eclipse.linuxtools.rpm.ui.editor.tests/src/org/eclipse/linuxtools/internal/rpm/ui/editor/hyperlink/tests/URLHyperlinkWithMacroDetectorTest.java
@@ -27,22 +27,22 @@ import org.junit.Test;
public class URLHyperlinkWithMacroDetectorTest extends FileTestCase {
- @Test
- public void testDetectHyperlinks() throws PartInitException {
- String testText = "Name: eclipse\nURL: http://www.%{name}.org/";
- newFile(testText);
- URLHyperlinkWithMacroDetector macroDetector = new URLHyperlinkWithMacroDetector();
- macroDetector.setSpecfile(specfile);
- IRegion region = new Region(20, 0);
- IEditorPart openEditor = IDE.openEditor(PlatformUI.getWorkbench()
- .getActiveWorkbenchWindow().getActivePage(), testFile,
- "org.eclipse.linuxtools.rpm.ui.editor.SpecfileEditor");
+ @Test
+ public void testDetectHyperlinks() throws PartInitException {
+ String testText = "Name: eclipse\nURL: http://www.%{name}.org/";
+ newFile(testText);
+ URLHyperlinkWithMacroDetector macroDetector = new URLHyperlinkWithMacroDetector();
+ macroDetector.setSpecfile(specfile);
+ IRegion region = new Region(20, 0);
+ IEditorPart openEditor = IDE.openEditor(PlatformUI.getWorkbench()
+ .getActiveWorkbenchWindow().getActivePage(), testFile,
+ "org.eclipse.linuxtools.rpm.ui.editor.SpecfileEditor");
- editor = (SpecfileEditor) openEditor;
- editor.doRevertToSaved();
- IHyperlink[] returned = macroDetector.detectHyperlinks(
- editor.getSpecfileSourceViewer(), region, false);
- URLHyperlink url = (URLHyperlink) returned[0];
- assertEquals("http://www.eclipse.org/", url.getURLString());
- }
+ editor = (SpecfileEditor) openEditor;
+ editor.doRevertToSaved();
+ IHyperlink[] returned = macroDetector.detectHyperlinks(
+ editor.getSpecfileSourceViewer(), region, false);
+ URLHyperlink url = (URLHyperlink) returned[0];
+ assertEquals("http://www.eclipse.org/", url.getURLString());
+ }
} \ No newline at end of file

Back to the top