Class jls.jsunit.Assert

A set of assert methods. Messages are only displayed when an assert fails.
Defined in: Assert.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
jls.jsunit.Assert.assertEquals(expected, actual, message)
Asserts that two values are equal.
<static>  
jls.jsunit.Assert.assertFalse(condition, message)
Asserts that a condition is false.
<static>  
jls.jsunit.Assert.assertNotNull(value, message)
Asserts that a value is not null.
<static>  
jls.jsunit.Assert.assertNotSame(expected, actual, message)
Asserts that two values differ.
<static>  
jls.jsunit.Assert.assertNull(value, message)
Asserts that a value is null.
<static>  
jls.jsunit.Assert.assertSame(expected, actual, message)
Asserts that two values are the same.
<static>  
jls.jsunit.Assert.assertTrue(condition, message)
Asserts that a condition is true.
<static>  
jls.jsunit.Assert.fail(message)
Fails a test with the given message.
Class Detail
jls.jsunit.Assert()
Method Detail
<static> jls.jsunit.Assert.assertEquals(expected, actual, message)
Asserts that two values are equal.
Parameters:
{Object} expected
The expected value.
{Object} actual
The actual value.
{String} message Optional
The message associated with the assertion.

<static> jls.jsunit.Assert.assertFalse(condition, message)
Asserts that a condition is false.
Parameters:
{Boolean} condition
The condition to verify.
{String} message Optional
The message associated with the assertion.

<static> jls.jsunit.Assert.assertNotNull(value, message)
Asserts that a value is not null.
Parameters:
{Object} value
The value to verify.
{String} message Optional
The message associated with the assertion.

<static> jls.jsunit.Assert.assertNotSame(expected, actual, message)
Asserts that two values differ.
Parameters:
{Object} expected
The expected value.
{Object} actual
The actual value.
{String} message Optional
The message associated with the assertion.

<static> jls.jsunit.Assert.assertNull(value, message)
Asserts that a value is null.
Parameters:
{Object} value
The value to verify.
{String} message Optional
The message associated with the assertion.

<static> jls.jsunit.Assert.assertSame(expected, actual, message)
Asserts that two values are the same.
Parameters:
{Object} expected
The expected value.
{Object} actual
The actual value.
{String} message Optional
The message associated with the assertion.

<static> jls.jsunit.Assert.assertTrue(condition, message)
Asserts that a condition is true.
Parameters:
{Boolean} condition
The condition to verify.
{String} message Optional
The message associated with the assertion.

<static> jls.jsunit.Assert.fail(message)
Fails a test with the given message.
Parameters:
{String} message Optional
The message associated with the failure.

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 01:56:36 GMT+0100 (CET)