From 5fe658158f66cb5c4816ba77a1a00ed6978f619b Mon Sep 17 00:00:00 2001 From: Arnaud Roques Date: Tue, 23 Mar 2021 18:30:58 +0100 Subject: [PATCH] Try to fix getPackageName --- test/nonreg/BasicTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/nonreg/BasicTest.java b/test/nonreg/BasicTest.java index f7a0686ae..5700d6685 100644 --- a/test/nonreg/BasicTest.java +++ b/test/nonreg/BasicTest.java @@ -23,6 +23,7 @@ import net.sourceforge.plantuml.core.DiagramDescription; /* * All non-regression tests must extends BasicTest class. + * * The tests must have a single test method that call the 'checkImage()' method. * Diagram to be tested must be stored in the test itself, separated by triple-quoted strings * The expected result (build using UGraphicDebug) is stored in a class xxxxResult.java, also separated by triple-quoted strings. @@ -75,7 +76,7 @@ public class BasicTest { } private String getPackageName() { - return getClass().getPackageName(); + return getClass().getPackage().getName(); } protected Path getResultFile() {