@Test public void multipleChanges() { MuxSanskritChange change = new MuxSanskritChange(Arrays.asList(change1, change2)); change.accept(visitor); verify(change1).accept(visitor); verify(change2).accept(visitor); verifyNoMoreInteractions(visitor); }
@Override public void accept(SanskritChangeVisitor visitor) { for (SanskritChange change : changes) { change.accept(visitor); } }
MuxSanskritChange implements SanskritChange { @Override public void accept(SanskritChangeVisitor visitor) { for (SanskritChange change : changes) { change.accept(visitor); } } }
MuxSanskritChange implements SanskritChange { @Override public void accept(SanskritChangeVisitor visitor) { for (SanskritChange change : changes) { change.accept(visitor); } } MuxSanskritChange(List<SanskritChange> changes); }
MuxSanskritChange implements SanskritChange { @Override public void accept(SanskritChangeVisitor visitor) { for (SanskritChange change : changes) { change.accept(visitor); } } MuxSanskritChange(List<SanskritChange> changes); @Override void accept(SanskritChangeVisitor visitor); }
MuxSanskritChange implements SanskritChange { @Override public void accept(SanskritChangeVisitor visitor) { for (SanskritChange change : changes) { change.accept(visitor); } } MuxSanskritChange(List<SanskritChange> changes); @Override void accept(SanskritChangeVisitor visitor);  }