congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TestedProductFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
TestedProductFactory
in
com.atlassian.pageobjects

Best Java code snippets using com.atlassian.pageobjects.TestedProductFactory (Showing top 15 results out of 315)

origin: com.atlassian.selenium/atlassian-webdriver-core

/**
 * Override to implement custom factory method for tested product.
 *
 * @param testedProductClass tested product class
 * @return tested product instance
 */
protected TestedProduct<?> createProduct(Class<? extends TestedProduct<?>> testedProductClass)
{
  return TestedProductFactory.create(testedProductClass);
}
origin: com.atlassian.selenium/atlassian-pageobjects-api

/**
 * Creates a tested product, allowing the instance to choose its own default {@link Tester} and instance id
 *
 * @param testedProductClass The tested product class
 * @param <P>                The tested product type
 * @return The created tested product
 */
public static <P extends TestedProduct<?>> P create(Class<P> testedProductClass)
{
  return create(testedProductClass, getDefaultInstanceId(testedProductClass), null);
}
origin: com.atlassian.selenium/atlassian-pageobjects-api

  Defaults defaults = getDefaultsAnnotation(testedProductClass);
  httpPort = defaults.httpPort();
  contextPath = defaults.contextPath();
  baseUrl =
      "http://" +
          Env.getVar("WEBDRIVER_TARGET_HOST", getLocalHostName()) + ":" +
          Env.getVar("WEBDRIVER_TARGET_PORT", String.valueOf(httpPort)) +
          contextPath;
return create(testedProductClass, instance, testerFactory);
origin: com.atlassian.selenium/atlassian-webdriver-core

public static <T extends TestedProduct<?>> TestRule forTest(Object testInstance, Class<T> testedProductClass)
{
  return new InstanceInjectionRules.InstanceStandaloneInjectionRule<T>(testInstance, memoize(fromFactory(testedProductClass)));
}
origin: com.atlassian.selenium/atlassian-pageobjects-api

private static String getDefaultInstanceId(Class<?> testedProductClass)
{
  Defaults annotation = getDefaultsAnnotation(testedProductClass);
  return annotation.instanceId();
}
origin: com.atlassian.selenium/atlassian-webdriver-core

public static <T extends TestedProduct<?>> InjectingTestRule forTestClass(Class<T> productClass)
{
  return new ClassInjectionRule<T>(memoize(fromFactory(productClass)));
}
origin: com.atlassian.support/stp-page-objects

Product(String name, String defaultInstanceId, String defaultContextPath, int defaultHttpPort,
    String serverInfoUrl, boolean hasLicense, Class<? extends TestedProduct> testedProductClass) {
  this.defaultContextPath = defaultContextPath;
  this.defaultHttpPort = defaultHttpPort;
  this.defaultInstanceId = defaultInstanceId;
  this.hasLicense = hasLicense;
  this.name = name;
  this.serverInfoUrl = serverInfoUrl;
  this.testedProduct = TestedProductFactory.create(testedProductClass);
}
origin: com.atlassian.selenium/atlassian-pageobjects-api

  @Override
  public T get()
  {
    return create(productClass);
  }
};
origin: com.atlassian.selenium/atlassian-webdriver-core

  @Override
  public void evaluate() throws Throwable
  {
    product = TestedProductFactory.create(testedProductClass);
    base.evaluate();
  }
};
origin: com.atlassian.selenium/atlassian-pageobjects-api

/**
 * Creates a tested product, allowing the instance to choose its own default {@link Tester} and instance id
 *
 * @param testedProductClass The tested product class name
 * @return The created tested product
 */
@SuppressWarnings("unchecked")
public static TestedProduct<?> create(String testedProductClass)
{
  Class<TestedProduct<?>> clazz;
  try
  {
    clazz = (Class<TestedProduct<?>>) TestedProductFactory.class.getClassLoader().loadClass(testedProductClass);
  }
  catch (ClassNotFoundException e)
  {
    throw new IllegalArgumentException("Cannot find tested product class: " + testedProductClass);
  }
  return create(clazz);
}
origin: com.atlassian.confluence/confluence-stateless-test-runner

@Override
protected TestedProduct<?> createProduct() {
  prepareProductInstanceConfiguration();
  return TestedProductFactory.create(ConfluenceBrowserlessTestedProduct.class);
}
origin: com.atlassian.confluence/confluence-stateless-test-runner

@Override
protected TestedProduct<?> createProduct() {
  prepareProductInstanceConfiguration();
  return TestedProductFactory.create(ConfluenceTestedProduct.class);
}
origin: com.atlassian.selenium/atlassian-webdriver-core

@Override
protected TestedProduct<?> createProduct(Class<? extends TestedProduct<?>> testedProductClass)
{
  final int port = startServer();
  return TestedProductFactory.create(testedProductClass, createProductInstance(port), null);
}
origin: com.atlassian.plugins/atlassian-connect-server-integration-tests-support

  public final FixedConfluenceTestedProduct getConfluenceProduct() {
    FixedConfluenceTestedProduct product;
    product = TestedProductFactory.create(FixedConfluenceTestedProduct.class);
    product.getPageBinder().override(GeneralPage.class, ConfluenceGeneralPage.class);
    return product;
  }
}
origin: com.atlassian.plugins/atlassian-connect-server-integration-tests-support

  public JiraTestedProduct getJiraProduct() {
    JiraTestedProduct product = TestedProductFactory.create(JiraTestedProduct.class);
    product.backdoor().darkFeatures().enableForSite("jira.onboarding.feature.disabled");

    product.getPageBinder().override(AdminHomePage.class, JiraAdminSummaryPage.class);
    product.getPageBinder().override(GeneralPage.class, JiraGeneralPage.class);
    product.getPageBinder().override(HomePage.class, DashboardPage.class);
    return product;
  }
}
com.atlassian.pageobjectsTestedProductFactory

Javadoc

Constructs a TestedProduct. The TestedProduct instance is created by calling the constructor with the following method signature:
 
TestedProduct(TesterFactory, ProductInstance) 

Most used methods

  • create
    Creates a tested product, allowing the instance to choose its own default Tester and instance id
  • fromFactory
  • getDefaultInstanceId
  • getDefaultsAnnotation
  • getLocalHostName

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Reference (javax.naming)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now