// Path: src/main/java/se/gustavkarlsson/rocketchat/jira_trigger/messages/field_creators/FieldCreator.java
// public interface FieldCreator {
// 	Field create(Issue issue);
// }
// 
// Path: src/main/java/se/gustavkarlsson/rocketchat/jira_trigger/messages/field_creators/StatusFieldCreator.java
// public class StatusFieldCreator extends AbstractFieldCreator {
// 	@Override
// 	protected String getTitle() {
// 		return "Status";
// 	}
// 
// 	@Override
// 	protected String getValue(Issue issue) {
// 		Status status = issue.getStatus();
// 		return status == null ? "-" : status.getName();
// 	}
// 
// 	@Override
// 	protected boolean isShortValue() {
// 		return true;
// 	}
// }
// 
// Path: src/main/java/se/gustavkarlsson/rocketchat/jira_trigger/messages/FieldCreatorMapper.java
// static final String STATUS_KEY = "status";


import org.joda.time.format.DateTimeFormat;
import org.junit.Test;
import se.gustavkarlsson.rocketchat.jira_trigger.messages.field_creators.FieldCreator;
import se.gustavkarlsson.rocketchat.jira_trigger.messages.field_creators.StatusFieldCreator;
import java.util.List;
import static java.util.Collections.emptyList;
import static java.util.Collections.singletonList;
import static org.assertj.core.api.Assertions.assertThat;
import static se.gustavkarlsson.rocketchat.jira_trigger.messages.FieldCreatorMapper.STATUS_KEY;
package se.gustavkarlsson.rocketchat.jira_trigger.messages;




public class FieldCreatorMapperTest {

	@Test(expected = NullPointerException.class)
	public void createWithNullDateTimeFormatterThrowsNpe() throws Exception {
		new FieldCreatorMapper(false, null);
	}

	@Test
	public void getSingleCreator() throws Exception {
		FieldCreatorMapper mapper = new FieldCreatorMapper(false, DateTimeFormat.forPattern("yyyy"));

// Path: src/main/java/se/gustavkarlsson/rocketchat/jira_trigger/messages/field_creators/FieldCreator.java
// public interface FieldCreator {
// 	Field create(Issue issue);
// }
// 
// Path: src/main/java/se/gustavkarlsson/rocketchat/jira_trigger/messages/field_creators/StatusFieldCreator.java
// public class StatusFieldCreator extends AbstractFieldCreator {
// 	@Override
// 	protected String getTitle() {
// 		return "Status";
// 	}
// 
// 	@Override
// 	protected String getValue(Issue issue) {
// 		Status status = issue.getStatus();
// 		return status == null ? "-" : status.getName();
// 	}
// 
// 	@Override
// 	protected boolean isShortValue() {
// 		return true;
// 	}
// }
// 
// Path: src/main/java/se/gustavkarlsson/rocketchat/jira_trigger/messages/FieldCreatorMapper.java
// static final String STATUS_KEY = "status";


// Path: src/test/java/se/gustavkarlsson/rocketchat/jira_trigger/messages/FieldCreatorMapperTest.java
import org.joda.time.format.DateTimeFormat;
import org.junit.Test;
import se.gustavkarlsson.rocketchat.jira_trigger.messages.field_creators.FieldCreator;
import se.gustavkarlsson.rocketchat.jira_trigger.messages.field_creators.StatusFieldCreator;
import java.util.List;
import static java.util.Collections.emptyList;
import static java.util.Collections.singletonList;
import static org.assertj.core.api.Assertions.assertThat;
import static se.gustavkarlsson.rocketchat.jira_trigger.messages.FieldCreatorMapper.STATUS_KEY;

package se.gustavkarlsson.rocketchat.jira_trigger.messages;




public class FieldCreatorMapperTest {

	@Test(expected = NullPointerException.class)
	public void createWithNullDateTimeFormatterThrowsNpe() throws Exception {
		new FieldCreatorMapper(false, null);
	}

	@Test
	public void getSingleCreator() throws Exception {
		FieldCreatorMapper mapper = new FieldCreatorMapper(false, DateTimeFormat.forPattern("yyyy"));

		List<FieldCreator> creators = mapper.getCreators(singletonList(STATUS_KEY));