public ProductInstanceBasedEnvironmentData(@Nonnull final ProductInstance productInstance) { super(new Properties()); notNull(productInstance); baseUrl = buildBaseUrl(productInstance); contextPath = productInstance.getContextPath(); xmlDataLocation = new File("./xml"); }
public FieldPicker switchToCustomMode() { if (getMode() != Mode.CUSTOM) { Tracer tracer = traceContext.checkpoint(); customModeLink.click(); Pattern xhrPattern = Pattern.compile(jiraProduct.getContextPath() + "/secure/((QuickCreateIssue!default.jspa\\?decorator=none)|(QuickEditIssue!default.jspa\\?issueId=([0-9]+)&decorator=none))"); traceContext.waitFor(tracer, "AJS.$.ajaxComplete", xhrPattern); } return binder.bind(FieldPicker.class); }
public static void repairEntityLinks(final JiraTestedProduct jira, final String projectKey) throws JSONException { repairEntityLinks(jira, projectKey, jira.environmentData().getContext(), JiraProjectEntityType.class); repairEntityLinks(jira, projectKey, ForeignTestedProductFactory.newConfluenceTestedProduct().getProductInstance().getContextPath(), ConfluenceSpaceEntityType.class); repairEntityLinks(jira, projectKey, ForeignTestedProductFactory.newBambooTestedProduct().getProductInstance().getContextPath(), BambooProjectEntityType.class); }