Skip to content

Commit f1cadd6

Browse files
Excavator: Migrate Groovy nebula test BaselineCircleCiTest to the new Java Junit framework
1 parent f909019 commit f1cadd6

File tree

3 files changed

+763
-38
lines changed

3 files changed

+763
-38
lines changed

gradle-baseline-java/src/test/groovy/com/palantir/baseline/BaselineCircleCiTest.groovy

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* (c) Copyright 2018 Palantir Technologies Inc. All rights reserved.
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+
17+
package com.palantir.baseline;
18+
19+
import static org.assertj.core.api.Assertions.assertThat;
20+
21+
import com.palantir.baseline.plugins.BaselineCircleCi;
22+
import org.gradle.api.Project;
23+
import org.gradle.testfixtures.ProjectBuilder;
24+
import org.junit.jupiter.api.BeforeEach;
25+
import org.junit.jupiter.api.Test;
26+
27+
class BaselineCircleCiTest {
28+
private Project project;
29+
30+
@BeforeEach
31+
void setup() {
32+
project = ProjectBuilder.builder().build();
33+
project.getPlugins().apply("java");
34+
project.getPlugins().apply(BaselineCircleCi.class);
35+
}
36+
37+
@Test
38+
void baseline_circle_ci_applied() {
39+
assertThat(project.getPlugins().hasPlugin(BaselineCircleCi.class)).isTrue();
40+
}
41+
}

0 commit comments

Comments
 (0)