@Test public void testAccepts() { assertTrue(tested.accepts(DEFINITION_ID)); assertFalse(tested.accepts("def2")); }
@Override public boolean accepts(final String definitionId) { return this.definitionId.equals(definitionId); }
MorphDefinitionImpl implements MorphDefinition { @Override public boolean accepts(final String definitionId) { return this.definitionId.equals(definitionId); } }
MorphDefinitionImpl implements MorphDefinition { @Override public boolean accepts(final String definitionId) { return this.definitionId.equals(definitionId); } MorphDefinitionImpl(final @MapsTo("definitionId") String definitionId,
                               final @MapsTo("base") String base,
                               final @MapsTo("defaultDefinitionId") String defaultDefinitionId,
                               final @MapsTo("targets") List<String> targets,
                               final @MapsTo("policy") ClonePolicy policy); }
MorphDefinitionImpl implements MorphDefinition { @Override public boolean accepts(final String definitionId) { return this.definitionId.equals(definitionId); } MorphDefinitionImpl(final @MapsTo("definitionId") String definitionId,
                               final @MapsTo("base") String base,
                               final @MapsTo("defaultDefinitionId") String defaultDefinitionId,
                               final @MapsTo("targets") List<String> targets,
                               final @MapsTo("policy") ClonePolicy policy); @Override boolean accepts(final String definitionId); @Override String getBase(); @Override String getDefault(); @Override Iterable<String> getTargets(final String definitionId); @Override ClonePolicy getPolicy(); }
MorphDefinitionImpl implements MorphDefinition { @Override public boolean accepts(final String definitionId) { return this.definitionId.equals(definitionId); } MorphDefinitionImpl(final @MapsTo("definitionId") String definitionId,
                               final @MapsTo("base") String base,
                               final @MapsTo("defaultDefinitionId") String defaultDefinitionId,
                               final @MapsTo("targets") List<String> targets,
                               final @MapsTo("policy") ClonePolicy policy); @Override boolean accepts(final String definitionId); @Override String getBase(); @Override String getDefault(); @Override Iterable<String> getTargets(final String definitionId); @Override ClonePolicy getPolicy();  }