From 11b13feb866697d6fc5d03d6454cc6649889dcdb Mon Sep 17 00:00:00 2001 From: ansgarz Date: Sun, 20 Aug 2023 15:15:40 +0200 Subject: [PATCH] 0.26.2 --- build.gradle | 2 +- .../provs/desktop/domain/DesktopServiceKtTest.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index f8771eb..029dd6f 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ apply plugin: "maven-publish" group = "org.domaindrivenarchitecture.provs" -version = "0.26.2-SNAPSHOT" +version = "0.26.2" repositories { diff --git a/src/test/kotlin/org/domaindrivenarchitecture/provs/desktop/domain/DesktopServiceKtTest.kt b/src/test/kotlin/org/domaindrivenarchitecture/provs/desktop/domain/DesktopServiceKtTest.kt index 4dc43a0..05eaef2 100644 --- a/src/test/kotlin/org/domaindrivenarchitecture/provs/desktop/domain/DesktopServiceKtTest.kt +++ b/src/test/kotlin/org/domaindrivenarchitecture/provs/desktop/domain/DesktopServiceKtTest.kt @@ -50,7 +50,7 @@ internal class DesktopServiceKtTest { fun provisionDesktop_with_onlyModules_firefox_installs_firefox() { // given val prov = Prov.newInstance(DummyProcessor()) - mockkStatic(Prov::installPpaFirefox) // mocks all function in file Firefox.kt + mockkStatic(Prov::installPpaFirefox) every { any().installPpaFirefox() } returns ProvResult(true, cmd = "mocked") // when @@ -69,7 +69,7 @@ internal class DesktopServiceKtTest { val prov = Prov.newInstance(DummyProcessor()) mockkStatic(Prov::verifyIdeSetup) mockkStatic(Prov::verifyOfficeSetup) - mockkStatic(Prov::provisionBasicDesktop) // mocks function provisionBasicDesktop and all other functions in same file + mockkStatic(Prov::provisionBasicDesktop) every { any().verifyIdeSetup() } returns ProvResult(true, cmd = "mocked") every { any().verifyOfficeSetup() } returns ProvResult(true, cmd = "mocked") every { any().provisionBasicDesktop(any(), any(), any(), any()) }