@Test public void shouldReturnTrueWhenExecutorMatches() throws Exception { Implementation implementation = make(a(randomImplementation)); assertThat(implementation.isExecutor(implementation.getExecutor()), is(true)); }
public boolean isExecutor(String executor) { return this.executor.equals(executor); }
Implementation extends BaseModel { public boolean isExecutor(String executor) { return this.executor.equals(executor); } }
Implementation extends BaseModel { public boolean isExecutor(String executor) { return this.executor.equals(executor); } Implementation();  Implementation(String executor, Collection<Treatment> treatments); }
Implementation extends BaseModel { public boolean isExecutor(String executor) { return this.executor.equals(executor); } Implementation();  Implementation(String executor, Collection<Treatment> treatments); boolean isExecutor(String executor); }
Implementation extends BaseModel { public boolean isExecutor(String executor) { return this.executor.equals(executor); } Implementation();  Implementation(String executor, Collection<Treatment> treatments); boolean isExecutor(String executor);  }