From 39fab5411560d570c135f00a57d42b056b2ec999 Mon Sep 17 00:00:00 2001 From: Vladimir Sitnikov Date: Tue, 21 May 2019 01:39:25 +0200 Subject: [PATCH] Fix functions.PackageTest#BSH1: move bsh file to resources folder --- .../test/java/org/apache/jmeter/functions/PackageTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions/src/test/java/org/apache/jmeter/functions/PackageTest.java b/src/functions/src/test/java/org/apache/jmeter/functions/PackageTest.java index 56062f999ff..a78337038f6 100644 --- a/src/functions/src/test/java/org/apache/jmeter/functions/PackageTest.java +++ b/src/functions/src/test/java/org/apache/jmeter/functions/PackageTest.java @@ -131,7 +131,7 @@ public void setUp() { } public void BSH1() throws Exception { - String fn = "testfiles/BeanShellTest.bsh"; + String fn = "src/test/resources/org/apache/jmeter/functions/testfiles/BeanShellTest.bsh"; try { BSHFParams(null, null, null); fail("Expected InvalidVariableException"); @@ -166,7 +166,7 @@ public void BSH1() throws Exception { assertEquals(log.getClass().getName(), bsh.execute()); // Check source works - bsh = BSHFParams("source (\"testfiles/BeanShellTest.bsh\")", null, null); + bsh = BSHFParams("source (\"" + fn + "\")", null, null); assertEquals("9876", bsh.execute()); // Check persistence