public final class JSpec extends Object
Constructor and Description |
---|
JSpec() |
Modifier and Type | Method and Description |
---|---|
static Expectation<Object> |
a(Object o1) |
static <T> void |
expect(DifferenceExpectation<T> expectation)
Expect that the results are different, throw TestException if same.
|
static <T> void |
expect(ExceptionExpectation<T> expectation) |
static <T> Expectation<T> |
it(T o1)
Works the same way as methods
the(Object) or a(Object) , but takes generalized instance as parameter. |
static Expectation<Object> |
the(Object o1) |
public static Expectation<Object> a(Object o1)
public static Expectation<Object> the(Object o1)
public static <T> Expectation<T> it(T o1)
the(Object)
or a(Object)
, but takes generalized instance as parameter. it(1).shouldNotBeEqual(2)
it("a").shouldNotBeEqual("b")
it(1L).shouldNotBeEqual(2)
it("aaa").shouldNotBeEqual(1)
T
- generic type of expectationo1
- generic instance for checkingpublic static <T> void expect(ExceptionExpectation<T> expectation)
public static <T> void expect(DifferenceExpectation<T> expectation)
expectation
- difference expectation.Copyright © 2016 JavaLite. All rights reserved.