@Test public void callsUnsetKey() { UnsetKeySanskritChange change = new UnsetKeySanskritChange("key"); change.accept(visitor); verify(visitor).removeKey("key"); verifyNoMoreInteractions(visitor); }
@Override public void accept(SanskritChangeVisitor visitor) { visitor.removeKey(key); }
UnsetKeySanskritChange implements SanskritChange { @Override public void accept(SanskritChangeVisitor visitor) { visitor.removeKey(key); } }
UnsetKeySanskritChange implements SanskritChange { @Override public void accept(SanskritChangeVisitor visitor) { visitor.removeKey(key); } UnsetKeySanskritChange(String key); }
UnsetKeySanskritChange implements SanskritChange { @Override public void accept(SanskritChangeVisitor visitor) { visitor.removeKey(key); } UnsetKeySanskritChange(String key); @Override void accept(SanskritChangeVisitor visitor); }
UnsetKeySanskritChange implements SanskritChange { @Override public void accept(SanskritChangeVisitor visitor) { visitor.removeKey(key); } UnsetKeySanskritChange(String key); @Override void accept(SanskritChangeVisitor visitor);  }