This is an automated email from the ASF dual-hosted git repository. asf-gitbox-commits pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cayenne.git
commit 8d43e8720d7c61b16fbd117dc866846aeb48feed Author: Andrus Adamchik <[email protected]> AuthorDate: Sun May 24 15:47:24 2026 -0400 cleanup --- .../cayenne/mcp/tools/dbimport/DbImportRunValidationTest.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cayenne-mcp-server/src/test/java/org/apache/cayenne/mcp/tools/dbimport/DbImportRunValidationTest.java b/cayenne-mcp-server/src/test/java/org/apache/cayenne/mcp/tools/dbimport/DbImportRunValidationTest.java index 0c13205f7..0bcc07269 100644 --- a/cayenne-mcp-server/src/test/java/org/apache/cayenne/mcp/tools/dbimport/DbImportRunValidationTest.java +++ b/cayenne-mcp-server/src/test/java/org/apache/cayenne/mcp/tools/dbimport/DbImportRunValidationTest.java @@ -44,13 +44,12 @@ import static org.junit.jupiter.api.Assertions.*; public class DbImportRunValidationTest { private static DbImportRunTool tool; - private static PrefsLocator prefsLocator; private Preferences testPrefsRoot; @BeforeAll public static void setUpClass() { - prefsLocator = new PrefsLocator(Preferences.userRoot().node("cayenne-test/dbimport-validation")); + PrefsLocator prefsLocator = new PrefsLocator(Preferences.userRoot().node("cayenne-test/dbimport-validation")); tool = new DbImportRunTool(prefsLocator); } @@ -96,7 +95,7 @@ public class DbImportRunValidationTest { @Test public void dataMapNotFound() throws URISyntaxException { - String projectPath = fixtureProject("no-dbimport"); + String projectPath = fixtureProject(); DbImportRunResult result = tool.run(projectPath, "NoSuchMap"); @@ -213,9 +212,9 @@ public class DbImportRunValidationTest { assertNoCredentialsInResult(result); } - private static String fixtureProject(String fixture) throws URISyntaxException { + private static String fixtureProject() throws URISyntaxException { return Paths.get(DbImportRunValidationTest.class - .getResource("/dbimport-fixtures/" + fixture + "/cayenne-project.xml") + .getResource("/dbimport-fixtures/no-dbimport/cayenne-project.xml") .toURI()).toString(); }
