@Test public void shouldApplySimpleRules() { { final SuffixFormSequence.SuffixFormSequenceRule rule = new SuffixFormSequenceRuleStub('m', SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_NONVOWEL_LETTER); ImmutableSet<PhoneticAttribute> phoneticAttributes = mock(ImmutableSet.class); assertThat(applier.apply(rule, phoneticAttributes), equalTo('m')); verifyZeroInteractions(phoneticAttributes); } { final SuffixFormSequence.SuffixFormSequenceRule rule = new SuffixFormSequenceRuleStub('a', SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_VOWEL_WITHOUT_HARMONY); ImmutableSet<PhoneticAttribute> phoneticAttributes = mock(ImmutableSet.class); assertThat(applier.apply(rule, phoneticAttributes), equalTo('a')); verifyZeroInteractions(phoneticAttributes); } }
public Character apply(SuffixFormSequence.SuffixFormSequenceRule rule, ImmutableSet<PhoneticAttribute> phoneticAttributesOfSurface) { return rule.apply(phoneticAttributesOfSurface); }
SuffixFormSequenceRuleApplier { public Character apply(SuffixFormSequence.SuffixFormSequenceRule rule, ImmutableSet<PhoneticAttribute> phoneticAttributesOfSurface) { return rule.apply(phoneticAttributesOfSurface); } }
SuffixFormSequenceRuleApplier { public Character apply(SuffixFormSequence.SuffixFormSequenceRule rule, ImmutableSet<PhoneticAttribute> phoneticAttributesOfSurface) { return rule.apply(phoneticAttributesOfSurface); }  }
SuffixFormSequenceRuleApplier { public Character apply(SuffixFormSequence.SuffixFormSequenceRule rule, ImmutableSet<PhoneticAttribute> phoneticAttributesOfSurface) { return rule.apply(phoneticAttributesOfSurface); }  Character apply(SuffixFormSequence.SuffixFormSequenceRule rule, ImmutableSet<PhoneticAttribute> phoneticAttributesOfSurface); }
SuffixFormSequenceRuleApplier { public Character apply(SuffixFormSequence.SuffixFormSequenceRule rule, ImmutableSet<PhoneticAttribute> phoneticAttributesOfSurface) { return rule.apply(phoneticAttributesOfSurface); }  Character apply(SuffixFormSequence.SuffixFormSequenceRule rule, ImmutableSet<PhoneticAttribute> phoneticAttributesOfSurface);  }