@Test public void callsSetLong() { AddLongSanskritChange change = new AddLongSanskritChange("key", 1L); change.accept(visitor); verify(visitor).setLong("key", 1L); verifyNoMoreInteractions(visitor); }
@Override public void accept(SanskritChangeVisitor visitor) { visitor.setLong(key, value); }
AddLongSanskritChange implements SanskritChange { @Override public void accept(SanskritChangeVisitor visitor) { visitor.setLong(key, value); } }
AddLongSanskritChange implements SanskritChange { @Override public void accept(SanskritChangeVisitor visitor) { visitor.setLong(key, value); } AddLongSanskritChange(String key, long value); }
AddLongSanskritChange implements SanskritChange { @Override public void accept(SanskritChangeVisitor visitor) { visitor.setLong(key, value); } AddLongSanskritChange(String key, long value); @Override void accept(SanskritChangeVisitor visitor); }
AddLongSanskritChange implements SanskritChange { @Override public void accept(SanskritChangeVisitor visitor) { visitor.setLong(key, value); } AddLongSanskritChange(String key, long value); @Override void accept(SanskritChangeVisitor visitor);  }