From 99437840e3e86c95e331c9db11f7cf31305f7ac2 Mon Sep 17 00:00:00 2001 From: chanikag Date: Mon, 6 Nov 2023 16:42:57 +0530 Subject: [PATCH] Update testcase to run with bat file --- .../org/wso2/carbon/esb/vfs/transport/test/ESBJAVA3470.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/integration/mediation-tests/tests-patches/src/test/java/org/wso2/carbon/esb/vfs/transport/test/ESBJAVA3470.java b/integration/mediation-tests/tests-patches/src/test/java/org/wso2/carbon/esb/vfs/transport/test/ESBJAVA3470.java index da5e4f6c06..8ed24e90f4 100644 --- a/integration/mediation-tests/tests-patches/src/test/java/org/wso2/carbon/esb/vfs/transport/test/ESBJAVA3470.java +++ b/integration/mediation-tests/tests-patches/src/test/java/org/wso2/carbon/esb/vfs/transport/test/ESBJAVA3470.java @@ -81,6 +81,7 @@ public class ESBJAVA3470 extends ESBIntegrationTest { private String carbonHome; private ServerConfigurationManager serverConfigurationManager; private static final String SH_FILE_NAME = "micro-integrator.sh"; + private static final String BAT_FILE_NAME = "micro-integrator.bat"; public static KeyPairProvider createTestHostKeyProvider(Path path) { SimpleGeneratorHostKeyProvider keyProvider = new SimpleGeneratorHostKeyProvider(); @@ -105,6 +106,11 @@ public void deployService() throws Exception { File oldShFile = new File(CarbonBaseUtils.getCarbonHome() + File.separator + "bin" + File.separator + SH_FILE_NAME); serverConfigurationManager.applyConfigurationWithoutRestart(newShFile, oldShFile, true); + File newBatFile = new File( + getESBResourceLocation() + File.separator + "vfs" + File.separator + BAT_FILE_NAME); + File oldBatFile = + new File(CarbonBaseUtils.getCarbonHome() + File.separator + "bin" + File.separator + BAT_FILE_NAME); + serverConfigurationManager.applyConfigurationWithoutRestart(newBatFile, oldBatFile, true); serverConfigurationManager.restartGracefully(); super.init(); }