com.atlassian.jira.functest.framework.assertions
Class URLAssertionsImpl

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.assertions.URLAssertionsImpl
All Implemented Interfaces:
URLAssertions, com.atlassian.jira.testkit.client.log.FuncTestLogger

public class URLAssertionsImpl
extends AbstractFuncTestUtil
implements URLAssertions

Default implementation of URLAssertions.

Since:
v3.13

Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
 
Constructor Summary
URLAssertionsImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
           
 
Method Summary
 void assertCurrentURLEndsWith(String expectedEnd)
          Make sure the current URL ends with the specified value.
 void assertCurrentURLMatchesRegex(String regex)
          Make sure current URL match the passed regular expression.
 void assertCurrentURLPathEndsWith(String expectedEnd)
          Make sure the current URL path ends with the specified value.
 void assertURLAreSimilair(String msg, String expectedURL, String actualURL)
          Makes sure that the 2 URLs are similair enough to be compared
 
Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLAssertionsImpl

public URLAssertionsImpl(net.sourceforge.jwebunit.WebTester tester,
                         JIRAEnvironmentData environmentData)
Method Detail

assertCurrentURLPathEndsWith

public void assertCurrentURLPathEndsWith(String expectedEnd)
Description copied from interface: URLAssertions
Make sure the current URL path ends with the specified value.

Specified by:
assertCurrentURLPathEndsWith in interface URLAssertions
Parameters:
expectedEnd - the expected current path the check.

assertCurrentURLEndsWith

public void assertCurrentURLEndsWith(String expectedEnd)
Description copied from interface: URLAssertions
Make sure the current URL ends with the specified value.

Specified by:
assertCurrentURLEndsWith in interface URLAssertions
Parameters:
expectedEnd - the expected end of the current url.

assertCurrentURLMatchesRegex

public void assertCurrentURLMatchesRegex(String regex)
Description copied from interface: URLAssertions
Make sure current URL match the passed regular expression.

Specified by:
assertCurrentURLMatchesRegex in interface URLAssertions
Parameters:
regex - the regular to use to match.

assertURLAreSimilair

public void assertURLAreSimilair(String msg,
                                 String expectedURL,
                                 String actualURL)
Description copied from interface: URLAssertions
Makes sure that the 2 URLs are similair enough to be compared

Specified by:
assertURLAreSimilair in interface URLAssertions
Parameters:
msg - the assertyion message
expectedURL - the expected URL
actualURL - the actual URL


Copyright © 2002-2014 Atlassian. All Rights Reserved.