AbstractJobProducer implements JobProducer { @Override public String getJobType() { return jobType; } AbstractJobProducer(String jobType); void activate(ComponentContext cc); @Override String getJobType(); @Override long countJobs(Status status); @Override void acceptJob(final Job job); @Override boolean isReadyToAcceptJobs(String operation); @Override boolean isReadyToAccept(Job job); Incidents incident(); static final boolean DEFAULT_ACCEPT_JOB_LOADS_EXCEEDING; static final String ACCEPT_JOB_LOADS_EXCEEDING_PROPERTY; }
@Test public void testGetType() throws Exception { replayAll(); assertEquals("test", jobProducer.getJobType()); }