This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/main by this push:
     new 437680a463 grids in unit test dialog do not resolve variables, fixes 
#6460 (#6461)
437680a463 is described below

commit 437680a4635661469b7c43ba2e59ef817cab47c0
Author: Hans Van Akelyen <[email protected]>
AuthorDate: Mon Feb 2 13:40:29 2026 +0100

    grids in unit test dialog do not resolve variables, fixes #6460 (#6461)
---
 .../java/org/apache/hop/ui/testing/PipelineUnitTestEditor.java     | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git 
a/plugins/misc/testing/src/main/java/org/apache/hop/ui/testing/PipelineUnitTestEditor.java
 
b/plugins/misc/testing/src/main/java/org/apache/hop/ui/testing/PipelineUnitTestEditor.java
index efafe5c003..c7f665a47f 100644
--- 
a/plugins/misc/testing/src/main/java/org/apache/hop/ui/testing/PipelineUnitTestEditor.java
+++ 
b/plugins/misc/testing/src/main/java/org/apache/hop/ui/testing/PipelineUnitTestEditor.java
@@ -24,7 +24,6 @@ import org.apache.hop.core.Const;
 import org.apache.hop.core.database.DatabaseMeta;
 import org.apache.hop.core.exception.HopException;
 import org.apache.hop.core.logging.LogChannel;
-import org.apache.hop.core.variables.Variables;
 import org.apache.hop.i18n.BaseMessages;
 import org.apache.hop.metadata.api.IHopMetadataProvider;
 import org.apache.hop.testing.PipelineUnitTest;
@@ -281,7 +280,7 @@ public class PipelineUnitTestEditor extends 
MetadataEditor<PipelineUnitTest> {
 
     wDbReplacements =
         new TableView(
-            new Variables(),
+            manager.getVariables(),
             parent,
             SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL | 
SWT.H_SCROLL,
             columns,
@@ -325,7 +324,7 @@ public class PipelineUnitTestEditor extends 
MetadataEditor<PipelineUnitTest> {
 
     wVariableValues =
         new TableView(
-            new Variables(),
+            manager.getVariables(),
             parent,
             SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL | 
SWT.H_SCROLL,
             varValColumns,
@@ -383,8 +382,6 @@ public class PipelineUnitTestEditor extends 
MetadataEditor<PipelineUnitTest> {
     //
     try {
       if (testPathDir != null && 
StringUtils.isEmpty(wPipelineFilename.getText())) {
-        /* PipelineUnitTest pipelineUnitTest = this.getMetadata();
-        pipelineUnitTest.setRelativeFilename(manager.getVariables(), 
testPathDir);*/
         wBasePath.setText(Const.NVL(testPathDir, ""));
       }
     } catch (Exception e) {

Reply via email to