File tree Expand file tree Collapse file tree 9 files changed +20
-20
lines changed
functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow
test/kotlin/com/github/jengelman/gradle/plugins/shadow/transformers Expand file tree Collapse file tree 9 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ abstract class BasePluginTest {
63
63
val outputServerShadowedJar: JarPath get() = jarPath(" server/build/libs/server-1.0-all.jar" )
64
64
65
65
@BeforeAll
66
- open fun doFirst () {
66
+ fun beforeAll () {
67
67
localRepo = AppendableMavenRepository (
68
68
createTempDirectory().resolve(" local-maven-repo" ).createDirectories(),
69
69
runner(projectDir = null ),
@@ -124,18 +124,18 @@ abstract class BasePluginTest {
124
124
}
125
125
126
126
@BeforeEach
127
- open fun setup () {
127
+ open fun beforeEach () {
128
128
projectScript.writeText(getDefaultProjectBuildScript(withGroup = true , withVersion = true ))
129
129
settingsScript.writeText(getDefaultSettingsBuildScript())
130
130
}
131
131
132
132
@AfterEach
133
- fun cleanup () {
133
+ fun afterEach () {
134
134
println (projectScript.readText())
135
135
}
136
136
137
137
@AfterAll
138
- fun doLast () {
138
+ fun afterAll () {
139
139
@OptIn(ExperimentalPathApi ::class )
140
140
localRepo.root.deleteRecursively()
141
141
}
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ import org.junit.jupiter.params.provider.ValueSource
12
12
13
13
class FilteringTest : BasePluginTest () {
14
14
@BeforeEach
15
- override fun setup () {
16
- super .setup ()
15
+ override fun beforeEach () {
16
+ super .beforeEach ()
17
17
projectScript.appendText(
18
18
"""
19
19
dependencies {
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ import org.junit.jupiter.api.Test
10
10
11
11
class GroovyPluginTest : BasePluginTest () {
12
12
@BeforeEach
13
- override fun setup () {
14
- super .setup ()
13
+ override fun beforeEach () {
14
+ super .beforeEach ()
15
15
val projectBuildScript = getDefaultProjectBuildScript(
16
16
plugin = " groovy" ,
17
17
withGroup = true ,
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ import org.junit.jupiter.params.provider.ValueSource
19
19
20
20
class KotlinPluginsTest : BasePluginTest () {
21
21
@BeforeEach
22
- override fun setup () {
23
- super .setup ()
22
+ override fun beforeEach () {
23
+ super .beforeEach ()
24
24
val projectBuildScript = getDefaultProjectBuildScript(
25
25
plugin = " org.jetbrains.kotlin.multiplatform" ,
26
26
withGroup = true ,
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ class PublishingTest : BasePluginTest() {
54
54
lateinit var remoteRepoPath: Path
55
55
56
56
@BeforeEach
57
- override fun setup () {
58
- super .setup ()
57
+ override fun beforeEach () {
58
+ super .beforeEach ()
59
59
settingsScript.appendText(" rootProject.name = 'maven'$lineSeparator " )
60
60
}
61
61
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ import org.junit.jupiter.api.Test
10
10
11
11
class ScalaPluginTest : BasePluginTest () {
12
12
@BeforeEach
13
- override fun setup () {
14
- super .setup ()
13
+ override fun beforeEach () {
14
+ super .beforeEach ()
15
15
val projectBuildScript = getDefaultProjectBuildScript(
16
16
plugin = " scala" ,
17
17
withGroup = true ,
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ import org.junit.jupiter.api.BeforeEach
8
8
9
9
abstract class BaseTransformerTest : BasePluginTest () {
10
10
@BeforeEach
11
- override fun setup () {
12
- super .setup ()
11
+ override fun beforeEach () {
12
+ super .beforeEach ()
13
13
projectScript.appendText(
14
14
"""
15
15
$shadowJarTask {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ abstract class BaseTransformerTest<T : ResourceTransformer> {
23
23
get() = TransformerContext (MANIFEST_NAME , requireResourceAsStream(MANIFEST_NAME ))
24
24
25
25
@BeforeEach
26
- open fun setup () {
26
+ open fun beforeEach () {
27
27
@Suppress(" UNCHECKED_CAST" )
28
28
val clazz = (this ::class .java.genericSuperclass as ParameterizedType ).actualTypeArguments.first() as Class <T >
29
29
transformer = clazz.create(testObjectFactory)
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ class ServiceFileTransformerTest : BaseTransformerTest<ServiceFileTransformer>()
27
27
private lateinit var tempJar: Path
28
28
29
29
@BeforeEach
30
- override fun setup () {
31
- super .setup ()
30
+ override fun beforeEach () {
31
+ super .beforeEach ()
32
32
tempJar = createTempFile(" shade." , " .jar" )
33
33
}
34
34
35
35
@AfterEach
36
- fun cleanup () {
36
+ fun afterEach () {
37
37
tempJar.deleteExisting()
38
38
}
39
39
You can’t perform that action at this time.
0 commit comments