This commit is contained in:
ansgarz 2023-08-20 15:15:40 +02:00
parent 9ceb74515d
commit 11b13feb86
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ apply plugin: "maven-publish"
group = "org.domaindrivenarchitecture.provs"
version = "0.26.2-SNAPSHOT"
version = "0.26.2"
repositories {

View file

@ -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<Prov>().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<Prov>().verifyIdeSetup() } returns ProvResult(true, cmd = "mocked")
every { any<Prov>().verifyOfficeSetup() } returns ProvResult(true, cmd = "mocked")
every { any<Prov>().provisionBasicDesktop(any(), any(), any(), any()) }