org.openqa.selenium.support.testing
Class Assertions

java.lang.Object
  extended by org.openqa.selenium.support.testing.Assertions

public class Assertions
extends java.lang.Object


Constructor Summary
Assertions()
           
 
Method Summary
static void assertEquals(java.lang.String expected, java.lang.String actual)
          Like JUnit's Assert.assertEquals, but handles "regexp:" strings like HTML Selenese
static void assertEquals(java.lang.String expected, java.lang.String[] actual)
          Like JUnit's Assert.assertEquals, but joins the string array with commas, and handles "regexp:" strings like HTML Selenese
static void assertNotEquals(java.lang.Object expected, java.lang.Object actual)
          Asserts that two objects are not the same (compares using .equals())
static boolean seleniumEquals(java.lang.Object expected, java.lang.Object actual)
          Compares two objects, but handles "regexp:" strings like HTML Selenese
protected static java.lang.String verifyEqualsAndReturnComparisonDumpIfNot(java.lang.String[] expected, java.lang.String[] actual)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assertions

public Assertions()
Method Detail

assertEquals

public static void assertEquals(java.lang.String expected,
                                java.lang.String actual)
Like JUnit's Assert.assertEquals, but handles "regexp:" strings like HTML Selenese


assertEquals

public static void assertEquals(java.lang.String expected,
                                java.lang.String[] actual)
Like JUnit's Assert.assertEquals, but joins the string array with commas, and handles "regexp:" strings like HTML Selenese


seleniumEquals

public static boolean seleniumEquals(java.lang.Object expected,
                                     java.lang.Object actual)
Compares two objects, but handles "regexp:" strings like HTML Selenese

Returns:
true if actual matches the expectedPattern, or false otherwise
See Also:
seleniumEquals(String, String)

verifyEqualsAndReturnComparisonDumpIfNot

protected static java.lang.String verifyEqualsAndReturnComparisonDumpIfNot(java.lang.String[] expected,
                                                                           java.lang.String[] actual)

assertNotEquals

public static void assertNotEquals(java.lang.Object expected,
                                   java.lang.Object actual)
Asserts that two objects are not the same (compares using .equals())



Copyright © 2010. All Rights Reserved.