Fix the test

This commit is contained in:
Bane Stojkovic
2022-10-23 08:10:57 +02:00
parent 7c81b7f8d2
commit 55c91faaf7
4 changed files with 4 additions and 3 deletions
@@ -130,7 +130,8 @@ public class Presenter implements IPlugInPort {
private static final String ERROR_EDIT = LangUtil.translate("Error occurred while editing selection. Check the log for details.");
private static final String ERROR_NEW = LangUtil.translate("Could not create a new file. Check the log for details.");
private static final String ERROR = LangUtil.translate("Error");
private static final String APPLY_ERROR = "Could not apply changes. Check the log for details.";
private static final String APPLY_ERROR = LangUtil.translate("Could not apply changes. Check the log for details.");
private static final String MAX_SWITCH_COMBINATIONS_ERROR = LangUtil.translate("Maximum number of switching combinations exceeded. Allowed: %s, actual: %s");
private static final Logger LOG = Logger.getLogger(Presenter.class);
@@ -3208,7 +3209,7 @@ public class Presenter implements IPlugInPort {
.reduce(1, (a, b) -> a * b);
if (totalSwitchCombinations > MAX_SWITCH_COMBINATIONS) {
throw new NetlistException("Maximum number of switching combinations exceeded. Allowed: " + MAX_SWITCH_COMBINATIONS + ", actual: " + totalSwitchCombinations);
throw new NetlistException(String.format(MAX_SWITCH_COMBINATIONS_ERROR, MAX_SWITCH_COMBINATIONS, totalSwitchCombinations));
}
while (i >= 0) {
Binary file not shown.
@@ -1,7 +1,7 @@
package org.diylc.netlist;
import org.diylc.components.guitar.LeverSwitch;
import org.diylc.components.guitar.LeverSwitchType;
import org.diylc.components.guitar.LeverSwitch.LeverSwitchType;
import org.junit.Test;
public class LeverSwitchTests extends AbstractSwitchTests {
Binary file not shown.