Package com.globant.google.mendoza

Source Code of com.globant.google.mendoza.SeleniumBuyerRobotFactoryMock

package com.globant.google.mendoza;

import com.globant.google.mendoza.malbec.SeleniumBuyerRobot;
import com.globant.google.mendoza.malbec.SeleniumBuyerRobotFactory;
import com.globant.google.mendoza.malbec.XmlCartEncoder;

public final class SeleniumBuyerRobotFactoryMock
extends SeleniumBuyerRobotFactory {

  public SeleniumBuyerRobotFactoryMock(final String theBaseUrl,
      final XmlCartEncoder theEncoder, final String theFirefoxPath,
      final String theSeleniumHost, final int theSeleniumPort) {
    super(MendozaTestConstants.sampleURL, new XmlCartEncoder(),
        MendozaTestConstants.sampleDirectory, MendozaTestConstants.sampleURL,
        MendozaTestConstants.samplePortNumber);
    System.out
        .println(
            "SeleniumBuyerRobotFactoryMock.SeleniumBuyerRobotFactoryMock()");
  }

  public SeleniumBuyerRobot createSeleniumBuyerRobot(
      final String merchantId, final String merchantKey) {
    System.out
        .println(
            "SeleniumBuyerRobotFactoryMock.createSeleniumBuyerRobot() - start");
    SeleniumBuyerRobotMock seleniumMock = new SeleniumBuyerRobotMock(
        MendozaTestConstants.sampleURL, MendozaTestConstants.sampleURL,
        new XmlCartEncoder(), merchantKey, MendozaTestConstants.sampleURL,
        MendozaTestConstants.sampleDirectory,
        MendozaTestConstants.samplePortNumber);
    System.out
        .println(
            "SeleniumBuyerRobotFactoryMock.createSeleniumBuyerRobot() - end");
    return seleniumMock;
  }
}
TOP

Related Classes of com.globant.google.mendoza.SeleniumBuyerRobotFactoryMock

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.