sm runner: code cleanup
[idea/community.git] / platform / smRunner / src / com / intellij / execution / testframework / sm / runner / events / TestSuiteStartedEvent.java
1 /*
2  * Copyright 2000-2012 JetBrains s.r.o.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 package com.intellij.execution.testframework.sm.runner.events;
17
18 import jetbrains.buildServer.messages.serviceMessages.TestSuiteStarted;
19 import org.jetbrains.annotations.NotNull;
20 import org.jetbrains.annotations.Nullable;
21
22 public class TestSuiteStartedEvent extends BaseStartedNodeEvent {
23
24   public TestSuiteStartedEvent(@NotNull TestSuiteStarted suiteStarted,
25                                @Nullable String locationUrl) {
26     super(suiteStarted.getSuiteName(),
27           TreeNodeEvent.getNodeId(suiteStarted),
28           getParentNodeId(suiteStarted),
29           locationUrl,
30           BaseStartedNodeEvent.getNodeType(suiteStarted),
31           BaseStartedNodeEvent.getNodeArgs(suiteStarted),
32           BaseStartedNodeEvent.isRunning(suiteStarted));
33   }
34
35   public TestSuiteStartedEvent(@NotNull String name, @Nullable String locationUrl) {
36     super(name, -1, -1, locationUrl, null, null, true);
37   }
38
39 }