From 468435a68ee11b9c3a254b01e02e367db2eb952d Mon Sep 17 00:00:00 2001 From: hneemann Date: Thu, 11 Jun 2020 07:21:51 +0200 Subject: [PATCH] fixed a library issue in the UnitTester --- src/main/java/de/neemann/digital/testing/UnitTester.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/neemann/digital/testing/UnitTester.java b/src/main/java/de/neemann/digital/testing/UnitTester.java index 47e94a92b..b71a03bc0 100644 --- a/src/main/java/de/neemann/digital/testing/UnitTester.java +++ b/src/main/java/de/neemann/digital/testing/UnitTester.java @@ -30,7 +30,7 @@ public class UnitTester { private boolean initCalled = false; /** - * Creates a new instanve + * Creates a new instance * * @param file the file to load * @throws IOException IOException @@ -40,7 +40,7 @@ public class UnitTester { */ public UnitTester(File file) throws IOException, ElementNotFoundException, PinException, NodeException { ElementLibrary library = new ElementLibrary(); - library.setRootFilePath(file.getParentFile()); + library.setRootFilePath(file.getAbsoluteFile().getParentFile()); initLibrary(library); ShapeFactory shapeFactory = new ShapeFactory(library); Circuit circuit = Circuit.loadCircuit(file, shapeFactory); @@ -56,7 +56,7 @@ public class UnitTester { } /** - * Writed data to a memory component + * Write data to a memory component * * @param filter the filter to identify the memory component * @param data the data to write @@ -69,7 +69,7 @@ public class UnitTester { } /** - * Reruts the memory idetified by the filter + * Returns the memory identified by the filter * * @param filter the filter to identify the memory component * @return the memory component