TaskConfiguration implements TaskLogInfo { public void setTypeId(final String typeId) { checkNotNull(typeId); setString(TYPE_ID_KEY, typeId); } TaskConfiguration();  TaskConfiguration(final TaskConfiguration configuration); void validate(); String getTaskLogName(); TaskConfiguration apply(final TaskConfiguration from); Map<String, String> asMap(); String toString(); String getId(); void setId(final String id); String getName(); void setName(final String name); String getTypeId(); void setTypeId(final String typeId); String getTypeName(); void setTypeName(final String typeName); boolean isEnabled(); void setEnabled(final boolean enabled); boolean isVisible(); void setVisible(final boolean visible); boolean isExposed(); void setExposed(final boolean exposed); @Nullable String getAlertEmail(); void setAlertEmail(final String email); TaskNotificationCondition getNotificationCondition(); void setNotificationCondition(final TaskNotificationCondition condition); @Nullable Date getCreated(); void setCreated(final Date date); @Nullable Date getUpdated(); void setUpdated(final Date date); @Nullable String getMessage(); void setMessage(final String message); boolean isRecoverable(); void setRecoverable(final boolean requestRecovery); boolean hasLastRunState(); @Nullable LastRunState getLastRunState(); void setLastRunState(final TaskState endState, final Date runStarted, final long runDuration); Date getDate(final String key, final Date defaultValue); void setDate(final String key, final Date date); boolean getBoolean(final String key, final boolean defaultValue); void setBoolean(final String key, final boolean value); int getInteger(final String key, final int defaultValue); void setInteger(final String key, final int value); long getLong(final String key, final long defaultValue); void setLong(final String key, final long value); @Nullable String getString(final String key); String getString(final String key, final String defaultValue); void setString(final String key, final String value); boolean containsKey(final String key); static final String LAST_RUN_STATE_END_STATE; static final String LAST_RUN_STATE_RUN_STARTED; static final String LAST_RUN_STATE_RUN_DURATION; }
@Test(expected = NullPointerException.class) public void setTypeIdNull() { underTest.setTypeId(null); }