// Path: spanners-api/src/main/java/org/dontpanic/spanners/api/data/Spanner.java
// @Entity
// public class Spanner {
// 
//     @Id
//     @GeneratedValue(strategy= GenerationType.AUTO)
//     private Long id;
//     private String name;
//     private int size;
//     private String owner;
// 
//     public Long getId() {
//         return id;
//     }
// 
//     public void setId(Long id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public int getSize() {
//         return size;
//     }
// 
//     public void setSize(int size) {
//         this.size = size;
//     }
// 
//     public String getOwner() {
//         return owner;
//     }
// 
//     public void setOwner(String owner) {
//         this.owner = owner;
//     }
// }


import org.dontpanic.spanners.api.data.Spanner;
package org.dontpanic.spanners.api.stubs;


/**
 * Builder for spanner test data
 * User: Stevie
 * Date: 05/11/14
 */
public class SpannerBuilder {

	public static final String DEFAULT_NAME = "Bertha";
	public static final int DEFAULT_SIZE = 16;
	public static final String DEFAULT_OWNER = "Mr Smith";

	private String name = DEFAULT_NAME;
	private int size = DEFAULT_SIZE;
	private String owner = DEFAULT_OWNER;

	public static SpannerBuilder aTestSpanner() {
		return new SpannerBuilder();
	}

	public SpannerBuilder named(String name) {
		this.name = name;
		return this;
	}

	public SpannerBuilder withSize(int size) {
		this.size = size;
		return this;
	}

	public SpannerBuilder ownedBy(String owner) {
		this.owner = owner;
		return this;
	}

// Path: spanners-api/src/main/java/org/dontpanic/spanners/api/data/Spanner.java
// @Entity
// public class Spanner {
// 
//     @Id
//     @GeneratedValue(strategy= GenerationType.AUTO)
//     private Long id;
//     private String name;
//     private int size;
//     private String owner;
// 
//     public Long getId() {
//         return id;
//     }
// 
//     public void setId(Long id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public int getSize() {
//         return size;
//     }
// 
//     public void setSize(int size) {
//         this.size = size;
//     }
// 
//     public String getOwner() {
//         return owner;
//     }
// 
//     public void setOwner(String owner) {
//         this.owner = owner;
//     }
// }


// Path: spanners-api/src/test/java/org/dontpanic/spanners/api/stubs/SpannerBuilder.java
import org.dontpanic.spanners.api.data.Spanner;

package org.dontpanic.spanners.api.stubs;


/**
 * Builder for spanner test data
 * User: Stevie
 * Date: 05/11/14
 */
public class SpannerBuilder {

	public static final String DEFAULT_NAME = "Bertha";
	public static final int DEFAULT_SIZE = 16;
	public static final String DEFAULT_OWNER = "Mr Smith";

	private String name = DEFAULT_NAME;
	private int size = DEFAULT_SIZE;
	private String owner = DEFAULT_OWNER;

	public static SpannerBuilder aTestSpanner() {
		return new SpannerBuilder();
	}

	public SpannerBuilder named(String name) {
		this.name = name;
		return this;
	}

	public SpannerBuilder withSize(int size) {
		this.size = size;
		return this;
	}

	public SpannerBuilder ownedBy(String owner) {
		this.owner = owner;
		return this;
	}

	public Spanner build() {