package me.pagarme.factory;


import java.util.Arrays;

import me.pagar.model.Plan;
import me.pagar.model.Transaction.PaymentMethod;

public class PlanFactory {

    public static final int DEFAULT_AMOUNT = 100;
    public static final int DEFAULT_DAYS = 30;
    public static final int DEFAULT_CHARGES = 100;
    public static final int DEFAULT_INSTALLMENTS = 2;
    public static final int DEFAULT_TRIAL_DAYS = 3;
    public static final String DEFAULT_NAME = "Plano teste";
    public static final String DEFAULT_COLOR = "#bababa";

    public Plan create() {
        Plan plan = new Plan();
        plan.setAmount(DEFAULT_AMOUNT);
        plan.setDays(DEFAULT_DAYS);
        plan.setName(DEFAULT_NAME);
        plan.setPaymentMethods(Arrays.asList(
            PaymentMethod.BOLETO, PaymentMethod.CREDIT_CARD
        ));
        plan.setCharges(DEFAULT_CHARGES);
        plan.setColor(DEFAULT_COLOR);
        plan.setInstallments(DEFAULT_INSTALLMENTS);
        plan.setTrialDays(DEFAULT_TRIAL_DAYS);
        return plan;
    }

}

@@ -1025,10 +1025,509 @@
 %0A    %7D%0A%0A
+    public Plan createPlanWithoutTrialDays ()%7B%0A        Plan plan = new Plan();%0A        plan.setAmount(DEFAULT_AMOUNT);%0A        plan.setDays(DEFAULT_DAYS);%0A        plan.setName(DEFAULT_NAME);%0A        plan.setPaymentMethods(Arrays.asList(%0A            PaymentMethod.BOLETO, PaymentMethod.CREDIT_CARD%0A        ));%0A        plan.setCharges(DEFAULT_CHARGES);%0A        plan.setColor(DEFAULT_COLOR);%0A        plan.setInstallments(DEFAULT_INSTALLMENTS);%0A        plan.setTrialDays(0);%0A        return plan;%0A    %7D%0A%0A
 %7D%0A

Create new method in PlanFactory createPlanWithoutTrialDays