2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com
.theoryinpractice
.testng
.ui
;
18 import com
.intellij
.execution
.filters
.HyperlinkInfo
;
19 import com
.intellij
.execution
.testframework
.Printer
;
20 import com
.intellij
.execution
.testframework
.stacktrace
.DiffHyperlink
;
21 import com
.intellij
.execution
.ui
.ConsoleView
;
22 import com
.intellij
.execution
.ui
.ConsoleViewContentType
;
23 import com
.theoryinpractice
.testng
.model
.TestNGConsoleProperties
;
26 * @author Hani Suleiman Date: Dec 1, 2006 Time: 12:14:04 PM
28 public class TestNGDiffHyperLink
extends DiffHyperlink
implements Printable
{
30 public TestNGDiffHyperLink(final String expected
, final String actual
, final String filePath
, final TestNGConsoleProperties consoleProperties
) {
31 super(expected
, actual
, filePath
);
34 public void print(final ConsoleView printer
) {
35 printOn(new Printer() {
36 public void print(final String text
, final ConsoleViewContentType contentType
) {
37 printer
.print(text
, contentType
);
40 public void printHyperlink(final String text
, final HyperlinkInfo info
) {
41 printer
.printHyperlink(text
, info
);
44 public void onNewAvailable(final com
.intellij
.execution
.testframework
.Printable printable
) {}