JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

Inherited Variables

Function Summary

public anything() : Expectation

An expectation that will always pass.

An expectation that will always pass.

Returns
Expectation
 
public assertThat(value: java.lang.Object, expects: Expectation) : Void

Asserts that the value passed in to the first parameter meets the expectation passed in as the second parameter, and throws an ExpectationException if they are not equal.

Asserts that the value passed in to the first parameter meets the expectation passed in as the second parameter, and throws an ExpectationException if they are not equal.

Parameters
value
expects
 
public closeTo(expected: Number) : Expectation
Parameters
expected
Returns
Expectation
 
public equalTo(expected: java.lang.Object) : Expectation

Expectation that will pass if the actual and expected values pass an equals() test.

Expectation that will pass if the actual and expected values pass an equals() test.

Parameters
expected
Returns
Expectation
 
public instanceOf(expected: java.lang.Object) : Expectation

Checks if the type of the expected object is an instance of the FXType that is passed in as the actual value.

Checks if the type of the expected object is an instance of the FXType that is passed in as the actual value. As a convenience, the actual value may also be passed in as a String in which case it will be looked up using reflection.

Parameters
expected
Returns
Expectation
 
public is(expected: java.lang.Object) : Expectation

The is expression is syntactic sugar for creating fluent sentences by chaining expectations.

The is expression is syntactic sugar for creating fluent sentences by chaining expectations. However, in the case where a value is supplied that is not an Expectation, this method will behave identically to equalTo().

Parameters
expected
Returns
Expectation
 
public isNot(expected: java.lang.Object) : Expectation

The not expression will negate the expectation that is passed in, and is functionally equivalent to expectException, except it can be chained in a series of expectations.

The not expression will negate the expectation that is passed in, and is functionally equivalent to expectException, except it can be chained in a series of expectations. However, in the case where a value is supplied that is not an Expectation, this method will behave identically to not(equalTo(expected)).

Parameters
expected
Returns
Expectation
 
public that(actual: java.lang.Object, expect: Expectation) : Assumption

Meant to be used in the assume clause of the Test fixture, this is a convenience method to create an assumption with the given actual and expectation.

Meant to be used in the assume clause of the Test fixture, this is a convenience method to create an assumption with the given actual and expectation.

Parameters
actual
expect
Returns
Assumption
 
public typeIs(expected: java.lang.Object) : Expectation

Compares the type of the expected object to the FXType that is passed in as the actual value.

Compares the type of the expected object to the FXType that is passed in as the actual value. As a convenience, the actual value may also be passed in as a String in which case it will be looked up using reflection.

Parameters
expected
Returns
Expectation
 

Inherited Functions