Uses of Class
org.blocktest.BTest

Packages that use BTest
Package
Description
 
  • Uses of BTest in org.blocktest

    Fields in org.blocktest declared as BTest
    Modifier and Type
    Field
    Description
    static BTest
    BTest.btest
     
    Methods in org.blocktest that return BTest
    Modifier and Type
    Method
    Description
    BTest.args(Object... value)
    For a given lambda test, provide a list of values as the arguments to the lambda function.
    static BTest
    BTest.blocktest()
    Declares a block test.
    static BTest
    BTest.blocktest(String name)
    Declares a block test with a name.
    BTest.checkEq(Object actual, Object expected)
    Check that the actual object is equal to the expected object.
    BTest.checkEq(Object actual, Object expected, Object delta)
    Check that the actual object is equal to the expected object within a delta.
    BTest.checkFalse(Object value)
    Check that the given value or expression is false.
    BTest.checkFlow(Flow... value)
    Check the flow of the block under test, as a sequence of Flow objects.
    BTest.checkReturnEq(Object expected)
    Checks that the return value of the block under test is equal to the expected value.
    BTest.checkReturnEq(Object expected, Object delta)
    Checks that the return value of the block under test is equal to the expected value within a delta.
    Check that the return value of the block or lambda is false.
    Check that the return value of the block or lambda is true.
    BTest.checkTrue(Object value)
    Check that the given value or expression is true.
    BTest.delay(long time)
    TODO: Need a real example, not sure what this does.
    BTest.end()
    TODO: What is the purpose of this?
    BTest.end(Object value)
    Deprecated, use end(EndAt value) instead.
    BTest.end(Object value, boolean endAfter)
    Deprecated, use end(EndAt value, boolean endAfter) instead.
    BTest.end(EndAt value)
    Set the stoppoint of the block test to be at the value specified by the EndAt enum.
    BTest.end(EndAt value, boolean endAfter)
    Set the stoppoint of the block test to be at the value specified by the EndAt enum, and decide whether to include the construct specified by the EndAt enum.
    BTest.end(EndAt value, int at)
    Set the stoppoint of the block test to be at the value specified by the EndAt enum, and at the specified instance.
    BTest.end(EndAt value, int at, boolean endAfter)
    Set the stoppoint of the block test to be at the value specified by the EndAt enum, and at the specified instance, and decide whether to include the construct specified by the EndAt enum.
    BTest.expect(Object value)
    Check that the block or lambda under test throws an exception.
    BTest.given(Object variable, Object value)
    Assigns a value to a variable that is used in the block under test.
    BTest.given(Object variable, Object value, Object type)
    Assigns a value to a variable that is used in the block under test, with a specified type.
    static BTest
    BTest.lambdatest()
    Declares a lambda test.
    static BTest
    BTest.lambdatest(String name)
    Declares a lambda test with a name.
    BTest.mock(Object... value)
    Mock the method calls of the block or lambda under test.
    BTest.mockStr(Object... value)
    TODO: What does this do?
    BTest.noInit(Object... variables)
    Specifies that for the given list of variables, do not initialize their values by inferring from context.
    BTest.setup(Runnable setupFunction)
    Set up the right environment to test a block or lambda by executing the Runnable.
    BTest.setup(String setupFunction)
     
    BTest.start(Object value)
    Deprecated, use start(EndAt value) instead.
    BTest.start(Object value, boolean endAfter)
    Deprecated, use start(EndAt value, boolean endAfter) instead.
    BTest.start(EndAt value)
    Set the start point of the block test to be at the value specified by the EndAt enum.
    BTest.start(EndAt value, boolean endAfter)
    Set the start point of the block test to be at the value specified by the EndAt enum, and decide whether to include the construct specified by the EndAt enum.
    BTest.start(EndAt value, int at)
    Set the start point of the block test to be at the value specified by the EndAt enum, and at the specified instance.
    BTest.start(EndAt value, int at, boolean endAfter)
    Set the start point of the block test to be at the value specified by the EndAt enum, and at the specified instance, and decide whether to include the construct specified by the EndAt enum.