package com.trywildcard.pair.util;
import com.google.common.collect.Lists;
import com.trywildcard.pair.exception.CardBuilderException;
import com.trywildcard.pair.model.product.Gender;
import com.trywildcard.pair.model.product.MappingColor;
import com.trywildcard.pair.model.product.ProductColor;
import java.util.*;
/**
* Product stub with data supporting Junit tests.
*/
public class DummyProduct {
// minimal attributes
public final String name = "Green leather shoes";
public final String description = "Brilliant, colorful shoes made from recycled materials.";
public final String webUrl;
public final String imgUrl;
public final String brand = "Shoemaster";
// extensive attributes
public final String merchant = "Example Store";
public final List<ProductColor> colors = new ArrayList<ProductColor>();
public final List<String> images = new ArrayList<String>();
public final Float rating = 8f;
public final Float ratingScale = 10f;
public final Integer ratingCount = 12;
public final List<String> relatedItems = new ArrayList<String>();
public final List<String> referencedItems = new ArrayList<String>();
public final Map<String, String> sizes = new HashMap<String, String>();
public final Gender gender = Gender.UNISEX;
public final List<String> options = Arrays
.asList("example option a",
"example option b",
"example option c");
public final String model = "KICKN-GRL-17";
public final List<String> keywords = Lists.newArrayList("keyword1", "keyword2");
public final String productId = "36226783";
public final String cardUrl;
public DummyProduct() throws CardBuilderException {
webUrl = "http://www.examplestore.com/listing/36226783/green-leather-shoes";
imgUrl = "http://img.examplestore.com/02/wer4554/il_5d9184_iqm9.jpg";
cardUrl = "http://www.examplestore.com/product_cards/36226783/";
ProductColor color = new ProductColor("Mint",
"RGB(62, 180, 137)",
"http://https://www.examplestore.com/swatches/mint.jpg",
MappingColor.Green);
colors.add(color);
sizes.put("md", "Medium");
images.add(imgUrl);
images.add("http://img.examplestore.com/017/fgh/il_57w9.jpg");
images.add("https://img.examplestore.com/020rjt/24554/il_570d14_3us0.jpg");
images.add("https://img.examplestore.com/0166f54/il_570xg90_87gc.jpg");
relatedItems.add("http://www.examplestore.com/listing/36226783/green-leather-shoes");
relatedItems.add("http://www.examplestore.com/listing/16362355/maroon-checkered-shoes");
relatedItems.add("http://www.examplestore.com/listing/13245522/pink-nylon-shoes");
referencedItems.add("http://www.examplestore.com/listing/45637734/blue-leather-shoes");
referencedItems.add("http://www.examplestore.com/listing/88833589/yellow-leather-shoes");
}
}