11521153115411551156115711581159116011611162
public void focusGained(FocusEvent e) { } @Override public void focusLost(FocusEvent e) { new SetStrategyNameCommand(strategy, part.getCaption()) .runAsJob(); } }; }
25262728293031323334
//setup Strategy strategy = issueCard.getStrategies().get(0); String newName = "new foo name"; //run command new SetStrategyNameCommand(strategy, newName).runWithoutUnicaseCommand(); //check assertEquals(newName, strategy.getName()); }