// Path: src/main/java/org/cejug/hurraa/model/OccurrenceFieldUpdate.java
// @Entity
// public class OccurrenceFieldUpdate implements Serializable {
// 	
// 	private static final long serialVersionUID = 5317998715760939361L;
// 
// 	@Id
// 	@GeneratedValue(strategy = GenerationType.IDENTITY)
// 	private Long id;
// 	
// 	@ManyToOne
// 	@JoinColumn( name="occurrenceUpdate_id" )
// 	private OccurrenceUpdate occurrenceUpdate;
// 	
// 	@NotBlank
// 	private String fieldName;
// 	
// 	@NotNull
// 	private String oldValue;
// 	
// 	@NotNull
// 	private String newValue;
// 	
// 	@Override
// 	public String toString() {
// 		StringBuilder builder = new StringBuilder();
// 		builder.append("OccurrenceFieldUpdate [id=").append(id)
// 				.append(", occurrenceUpdate=").append(occurrenceUpdate)
// 				.append(", fieldName=").append(fieldName).append(", oldValue=")
// 				.append(oldValue).append(", newValue=").append(newValue)
// 				.append("]");
// 		return builder.toString();
// 	}
// 
// 	public OccurrenceUpdate getOccurrenceUpdate() {
// 		return occurrenceUpdate;
// 	}
// 
// 	public void setOccurrenceUpdate(OccurrenceUpdate occurrenceUpdate) {
// 		this.occurrenceUpdate = occurrenceUpdate;
// 	}
// 
// 	public String getFieldName() {
// 		return fieldName;
// 	}
// 
// 	public void setFieldName(String fieldName) {
// 		this.fieldName = fieldName;
// 	}
// 
// 	public String getOldValue() {
// 		return oldValue;
// 	}
// 
// 	public void setOldValue(String oldValue) {
// 		this.oldValue = oldValue;
// 	}
// 
// 	public String getNewValue() {
// 		return newValue;
// 	}
// 
// 	public void setNewValue(String newValue) {
// 		this.newValue = newValue;
// 	}
// 
// 	public Long getId() {
// 		return id;
// 	}
// 
// 	public void setId(Long id) {
// 		this.id = id;
// 	}
// 	
// }


import static org.junit.Assert.*;
import org.cejug.hurraa.model.OccurrenceFieldUpdate;
import org.junit.Before;
import org.junit.Test;
/*
* Hurraa is a web application conceived to manage resources
* in companies that need manage IT resources. Create issues
* and purchase IT materials. Copyright (C) 2014 CEJUG.
*
* Hurraa is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Hurraa is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Hurraa. If not, see http://www.gnu.org/licenses/gpl-3.0.html.
*
*/
package org.cejug.hurraa.model.builder;



public class OccurrenceFieldUpdateBuilderTest {
	
	private OccurrenceFieldUpdateBuilder builder;
	
	@Before
	public void setUp(){
		builder = new OccurrenceFieldUpdateBuilder();
	}
	
	
	@Test
	public void doesCreateOccurrenceFieldUpdateWithTheEspecifiedFields(){
		String fieldName = "My Field Name";
		String newValue = "New Value";
		String oldValue = "Old Value";
		
// Path: src/main/java/org/cejug/hurraa/model/OccurrenceFieldUpdate.java
// @Entity
// public class OccurrenceFieldUpdate implements Serializable {
// 	
// 	private static final long serialVersionUID = 5317998715760939361L;
// 
// 	@Id
// 	@GeneratedValue(strategy = GenerationType.IDENTITY)
// 	private Long id;
// 	
// 	@ManyToOne
// 	@JoinColumn( name="occurrenceUpdate_id" )
// 	private OccurrenceUpdate occurrenceUpdate;
// 	
// 	@NotBlank
// 	private String fieldName;
// 	
// 	@NotNull
// 	private String oldValue;
// 	
// 	@NotNull
// 	private String newValue;
// 	
// 	@Override
// 	public String toString() {
// 		StringBuilder builder = new StringBuilder();
// 		builder.append("OccurrenceFieldUpdate [id=").append(id)
// 				.append(", occurrenceUpdate=").append(occurrenceUpdate)
// 				.append(", fieldName=").append(fieldName).append(", oldValue=")
// 				.append(oldValue).append(", newValue=").append(newValue)
// 				.append("]");
// 		return builder.toString();
// 	}
// 
// 	public OccurrenceUpdate getOccurrenceUpdate() {
// 		return occurrenceUpdate;
// 	}
// 
// 	public void setOccurrenceUpdate(OccurrenceUpdate occurrenceUpdate) {
// 		this.occurrenceUpdate = occurrenceUpdate;
// 	}
// 
// 	public String getFieldName() {
// 		return fieldName;
// 	}
// 
// 	public void setFieldName(String fieldName) {
// 		this.fieldName = fieldName;
// 	}
// 
// 	public String getOldValue() {
// 		return oldValue;
// 	}
// 
// 	public void setOldValue(String oldValue) {
// 		this.oldValue = oldValue;
// 	}
// 
// 	public String getNewValue() {
// 		return newValue;
// 	}
// 
// 	public void setNewValue(String newValue) {
// 		this.newValue = newValue;
// 	}
// 
// 	public Long getId() {
// 		return id;
// 	}
// 
// 	public void setId(Long id) {
// 		this.id = id;
// 	}
// 	
// }


// Path: src/test/java/org/cejug/hurraa/model/builder/OccurrenceFieldUpdateBuilderTest.java
import static org.junit.Assert.*;
import org.cejug.hurraa.model.OccurrenceFieldUpdate;
import org.junit.Before;
import org.junit.Test;

/*
* Hurraa is a web application conceived to manage resources
* in companies that need manage IT resources. Create issues
* and purchase IT materials. Copyright (C) 2014 CEJUG.
*
* Hurraa is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Hurraa is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Hurraa. If not, see http://www.gnu.org/licenses/gpl-3.0.html.
*
*/
package org.cejug.hurraa.model.builder;



public class OccurrenceFieldUpdateBuilderTest {
	
	private OccurrenceFieldUpdateBuilder builder;
	
	@Before
	public void setUp(){
		builder = new OccurrenceFieldUpdateBuilder();
	}
	
	
	@Test
	public void doesCreateOccurrenceFieldUpdateWithTheEspecifiedFields(){
		String fieldName = "My Field Name";
		String newValue = "New Value";
		String oldValue = "Old Value";
		
		OccurrenceFieldUpdate ofu = builder.withFieldName(fieldName).withNewValue(newValue).withOldValue(oldValue).build();