package io.crowdcode.flaschenlager.product.fixture;

import io.crowdcode.flaschenlager.product.model.Product;

/**
 * Created by idueppe on 24.03.17.
 */
public class ProductFixture {
    public static Product buildDefaultProduct() {
        return new Product()
                .setName("PRODUCT_NAME")
                .setDescription("PRODUCT_DESCRIPTION")
                .setAmount(123.45d)
                .setUnit("1L");
    }


    public static Product buildPersistentProduct() {
        return new Product()
                .setName("PRODUCT_NAME_2")
                .setDescription("PRODUCT_DESCRIPTION_2")
                .setAmount(123.45d)
                .setUnit("1L")
                .setId(-2L);

    }
}

@@ -372,37 +372,294 @@
     .setAmount(1
-23.45
+.0d)%0A                .setUnit(%22Liter%22);%0A    %7D%0A%0A    public static Product buildProduct(String productName) %7B%0A        return new Product()%0A                .setName(productName)%0A                .setDescription(%22PRODCUT_DESCRIPTION%22)%0A                .setAmount(0.750
 d)%0A             
@@ -671,18 +671,21 @@
 etUnit(%22
-1
 L
+iter
 %22);%0A    
@@ -687,17 +687,16 @@
 %0A    %7D%0A%0A
-%0A
     publ
@@ -965,17 +965,17 @@
 d(-2L);%0A
-%0A
     %7D%0A
+%0A
 %7D%0A

add additional fixture method