MetaJobRunnable implements JobRunnable { public final void setMeta(final String key, final String value) { checkKey(key); metaRepository.setValue(jobType, key, value); } protected  MetaJobRunnable(final String jobType,
                              final JobMetaRepository metaRepository); final String getJobType(); final void deleteMeta(final String key); final void setMeta(final String key, final String value); final void setMeta(final String key, final int value); final void setMeta(final String key, final Integer value); final void setMeta(final String key, final long value); final void setMeta(final String key, final Long value); final void setMeta(final String key, final Instant value); final String getMetaAsString(final String key); final String getMetaAsString(final String key, final String defaultValue); int getMetaAsInt(final String key, final int defaultValue); final long getMetaAsLong(final String key, final long defaultValue); final Instant getMetaAsInstant(final String key); final Instant getMetaAsInstant(final String key, final Instant defaultValue);  }
@Test public void shouldSetMetaAsString() { testee.setMeta("key", "value"); verify(metaRepository).setValue("someJob", "key", "value"); }
@Test public void shouldSetMetaAsInt() { testee.setMeta("key", 42); verify(metaRepository).setValue("someJob", "key", "42"); }
@Test public void shouldSetMetaAsLong() { testee.setMeta("key", 42L); verify(metaRepository).setValue("someJob", "key", "42"); }
@Test public void shouldSetMetaAsInstant() { testee.setMeta("key", Instant.ofEpochMilli(42)); verify(metaRepository).setValue("someJob", "key", "42"); }
@Test public void shouldDeletaMetaAsInstant() { testee.setMeta("key", (Instant) null); verify(metaRepository).setValue("someJob", "key", null); }