-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dead code Dependency versions bump Closes #31
- Loading branch information
Showing
7 changed files
with
49 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 2 additions & 26 deletions
28
src/test/kotlin/pl/droidsonroids/gradle/jacoco/testkit/CommonsTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,20 @@ | ||
package pl.droidsonroids.gradle.jacoco.testkit | ||
|
||
import org.assertj.core.api.Assertions.assertThat | ||
import org.gradle.api.GradleException | ||
import org.gradle.testfixtures.ProjectBuilder | ||
import org.junit.Rule | ||
import org.junit.Test | ||
import org.junit.rules.TemporaryFolder | ||
import java.io.File | ||
|
||
class CommonsTest { | ||
|
||
@get:Rule | ||
val temporaryFolder = TemporaryFolder() | ||
|
||
@Test | ||
fun `existing parent existence ensured`() { | ||
val file = temporaryFolder.newFile() | ||
assertThat(file.parentFile).isDirectory() | ||
assertThat(file.ensureParentExists()).isTrue() | ||
} | ||
|
||
@Test | ||
fun `non existent parent created`() { | ||
val parent = temporaryFolder.newFolder() | ||
assertThat(parent.delete()).isTrue() | ||
val file = File(parent, "test") | ||
assertThat(file.parentFile).doesNotExist() | ||
assertThat(file.ensureParentExists()).isTrue() | ||
assertThat(file.parentFile).isDirectory() | ||
} | ||
|
||
@Test(expected = GradleException::class) | ||
fun `exception thrown if parent could not be created`() { | ||
val file = temporaryFolder.newFile() | ||
assertThat(file).isFile() | ||
File(file, "test").ensureParentExists() | ||
} | ||
|
||
@Test | ||
fun `test kit directory is located in build directory`() { | ||
val project = ProjectBuilder.builder().build() | ||
assertThat(project.testKitDir()).hasParent(File(project.buildDir, "testkit")) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters