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.
21 package com
.intellij
.execution
.testframework
;
23 import com
.intellij
.execution
.ExecutionBundle
;
24 import com
.intellij
.history
.LocalHistory
;
28 public class LvcsHelper
{
29 private static final Color RED
= new Color(250, 220, 220);
30 private static final Color GREEN
= new Color(220, 250, 220);
32 public static void addLabel(final TestFrameworkRunningModel model
) {
36 if (model
.getRoot().isDefect()) {
38 label
= ExecutionBundle
.message("junit.runing.info.tests.failed.label");
41 color
= GREEN
.getRGB();
42 label
= ExecutionBundle
.message("junit.runing.info.tests.passed.label");
44 final TestConsoleProperties consoleProperties
= model
.getProperties();
45 String name
= label
+ " " + consoleProperties
.getConfiguration().getName();
46 LocalHistory
.putSystemLabel(consoleProperties
.getProject(), name
, color
);