@Test public void testCommit() throws Exception { final DropScriptCommand command = mock(DropScriptCommand.class); whenNew(DropScriptCommand.class).withArguments(scriptName).thenReturn(command); adder.commit(); verify(queue).addOnCclCloseCommand(command); }
@Override public void commit() { queue.addOnCclCloseCommand(new DropScriptCommand(scriptName)); }
ScriptDropAdderImpl implements ScriptDropAdder { @Override public void commit() { queue.addOnCclCloseCommand(new DropScriptCommand(scriptName)); } }
ScriptDropAdderImpl implements ScriptDropAdder { @Override public void commit() { queue.addOnCclCloseCommand(new DropScriptCommand(scriptName)); } ScriptDropAdderImpl(final String scriptName, final CommandQueue queue); }
ScriptDropAdderImpl implements ScriptDropAdder { @Override public void commit() { queue.addOnCclCloseCommand(new DropScriptCommand(scriptName)); } ScriptDropAdderImpl(final String scriptName, final CommandQueue queue); @Override void commit(); }
ScriptDropAdderImpl implements ScriptDropAdder { @Override public void commit() { queue.addOnCclCloseCommand(new DropScriptCommand(scriptName)); } ScriptDropAdderImpl(final String scriptName, final CommandQueue queue); @Override void commit();  }