Skip to content

Commit

Permalink
test : replace Mockito.mock in AssemblyManagerCreateDockerTarArchiveT…
Browse files Browse the repository at this point in the history
…est #2675 (#2728)

Replaced Mockito.mock by creating an actual object.
  • Loading branch information
AmitPatil05 authored Feb 26, 2024
1 parent f379a29 commit b61b185
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.eclipse.jkube.kit.common.JKubeConfiguration;
import org.eclipse.jkube.kit.common.JavaProject;
import org.eclipse.jkube.kit.common.PrefixedLogger;
import org.eclipse.jkube.kit.common.KitLogger;
import org.eclipse.jkube.kit.common.assertj.ArchiveAssertions;
import org.eclipse.jkube.kit.common.assertj.FileAssertions;
import org.eclipse.jkube.kit.config.image.build.BuildConfiguration;
Expand All @@ -43,7 +44,6 @@

import static org.apache.commons.io.FilenameUtils.separatorsToSystem;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;

class AssemblyManagerCreateDockerTarArchiveTest {

Expand All @@ -59,7 +59,7 @@ class AssemblyManagerCreateDockerTarArchiveTest {

@BeforeEach
void setUp() throws IOException {
prefixedLogger = mock(PrefixedLogger.class);
prefixedLogger = new PrefixedLogger("test-prefix", new KitLogger.SilentLogger());
assemblyManager = AssemblyManager.getInstance();
baseDirectory = temporaryFolder.toFile();
targetDirectory = Files.createDirectory(temporaryFolder.resolve("target")).toFile();
Expand Down

0 comments on commit b61b185

Please sign in to comment.