ACS-10505 fixing test cases

This commit is contained in:
bsayan2
2026-01-09 14:04:30 +05:30
parent 90e7505ecc
commit 8d9f00a5b2
@@ -2,7 +2,7 @@
* #%L
* Alfresco Transform Core
* %%
* Copyright (C) 2022 - 2022 Alfresco Software Limited
* Copyright (C) 2022 - 2026 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -79,6 +79,7 @@ import ch.qos.logback.core.AppenderBase;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.ImmutableMap;
import org.codehaus.plexus.util.FileUtils;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
import org.mockito.stubbing.Answer;
@@ -139,6 +140,12 @@ public class TransformControllerTest
AbstractBaseTest.resetProbeForTesting(transformController.getProbeTransform());
}
@BeforeEach
void setUp()
{
ReflectionTestUtils.setField(transformController, "enableTestEndpoint", true);
}
@Test
public void testInitEngine() throws Exception
{