File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
downloader/src/funTest/kotlin
utils/test/src/main/kotlin Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class VersionControlSystemFunTest : WordSpec({
4141 val absProjDir = relProjDir.absoluteFile
4242
4343 " For an absolute working directory, getPathToRoot()" should {
44- val absVcsDir = VersionControlSystem .forDirectory(absProjDir)!!
44+ val absVcsDir = checkNotNull( VersionControlSystem .forDirectory(absProjDir))
4545
4646 " work if given absolute paths" {
4747 absVcsDir.getPathToRoot(vcsRoot) shouldBe " "
@@ -57,7 +57,7 @@ class VersionControlSystemFunTest : WordSpec({
5757 }
5858
5959 " For a relative working directory, getPathToRoot()" should {
60- val relVcsDir = VersionControlSystem .forDirectory(relProjDir)!!
60+ val relVcsDir = checkNotNull( VersionControlSystem .forDirectory(relProjDir))
6161
6262 " work if given absolute paths" {
6363 relVcsDir.getPathToRoot(vcsRoot) shouldBe " "
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ fun matchExpectedResult(
9292 if (multiLineDiff != " unified" ) return EqMatcher (expected)
9393
9494 return Matcher { actual ->
95- val vcsDir = VersionControlSystem .forDirectory(expectedResultFile)!!
95+ val vcsDir = checkNotNull( VersionControlSystem .forDirectory(expectedResultFile))
9696 val relativeExpectedResultFile = vcsDir.getPathToRoot(expectedResultFile)
9797
9898 val expectedLines = expected.lines()
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ fun patchExpectedResult(
8989
9090 if (definitionFile != null ) {
9191 val projectDir = definitionFile.parentFile
92- val vcsDir = VersionControlSystem .forDirectory(projectDir)!!
92+ val vcsDir = checkNotNull( VersionControlSystem .forDirectory(projectDir))
9393 val url = vcsDir.getRemoteUrl()
9494 val path = vcsDir.getPathToRoot(projectDir)
9595
You can’t perform that action at this time.
0 commit comments