Package br.com.six2six.template

Source Code of br.com.six2six.template.XMLTransactionTemplate

package br.com.six2six.template;

import br.com.six2six.fixturefactory.Fixture;
import br.com.six2six.fixturefactory.Rule;
import br.com.six2six.fixturefactory.loader.TemplateLoader;
import br.com.six2six.fixturefactory.model.XMLTransaction;

public class XMLTransactionTemplate implements TemplateLoader {

  @Override
  public void load() {
    Fixture.of(XMLTransaction.class).addTemplate("validTransaction", new Rule(){{
      add("origin", "ORIGIN");
      add("date", instant("now"));
      add("hour", instant("now"));
    }});
  }
}
TOP

Related Classes of br.com.six2six.template.XMLTransactionTemplate

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.