public class ASTAssertionBase<P extends ASTAssertionBase> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
_index |
protected String |
_name |
protected ASTModel |
ast |
protected P |
parent |
| Constructor and Description |
|---|
ASTAssertionBase(String name,
ASTModel ast,
P parent) |
ASTAssertionBase(String name,
int index,
ASTModel ast,
P parent) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
error(String message) |
protected String |
getActualPrefix() |
protected String |
getExpectedPrefix() |
protected String |
getIdentifier() |
protected String |
getPositionString() |
protected void |
info(String message) |
P |
parent() |
protected <A extends ASTAssertionBase> |
parentAssertion(Class<A> cls) |
protected void |
shouldBeFalse(boolean value,
String name) |
protected <C> void |
shouldBeInstanceOf(Object actual,
Class<C> expected,
String name) |
protected void |
shouldBeNull(Object obj,
String name) |
protected void |
shouldBeTrue(boolean value,
String name) |
protected void |
shouldContains(List<String> list,
String expected,
String name) |
protected void |
shouldEquals(boolean actual,
boolean expected,
String name) |
protected void |
shouldEquals(Double actual,
Double expected,
String name) |
protected <E extends Enum<E>> |
shouldEquals(E actual,
E expected,
String name) |
protected void |
shouldEquals(Integer actual,
Integer expected,
String name) |
protected void |
shouldEquals(String actual,
String expected,
String name) |
protected <A> void |
shouldHaveMinSizeOf(List<A> list,
int expectedMinSize,
String name) |
protected <A> void |
shouldHaveSizeOf(List<A> list,
int expectedSize,
String name) |
protected ASTAssertionBase |
shouldNotBeEmpty() |
protected <A> void |
shouldNotBeEmpty(List<A> list,
String name) |
protected void |
shouldNotBeEmpty(Object obj,
String name) |
protected void |
shouldNotBeEmpty(String obj,
String name) |
protected void |
shouldNotBeNull(Object obj,
String name) |
protected <A> void |
shouldNotBeOutOfRange(List<A> list,
int index) |
protected void |
shouldStartsWith(String actual,
String expectedStart,
String name) |
protected void |
writeActual(String message) |
protected void |
writeExpected(String message) |
protected void |
writeExpectedAndActual(String expected,
String actual) |
protected String _name
protected int _index
protected ASTModel ast
protected P extends ASTAssertionBase parent
protected void writeExpected(String message)
protected void writeActual(String message)
protected void info(String message)
protected void error(String message)
protected String getExpectedPrefix()
protected String getActualPrefix()
protected String getPositionString()
protected String getIdentifier()
protected ASTAssertionBase shouldNotBeEmpty()
public P parent()
protected <A extends ASTAssertionBase> A parentAssertion(Class<A> cls)
protected void shouldBeTrue(boolean value,
String name)
protected void shouldBeFalse(boolean value,
String name)
protected void shouldEquals(boolean actual,
boolean expected,
String name)
protected <C> void shouldBeInstanceOf(Object actual, Class<C> expected, String name)
protected <A> void shouldHaveMinSizeOf(List<A> list, int expectedMinSize, String name)
protected <A> void shouldNotBeOutOfRange(List<A> list, int index)
Copyright © 2020. All rights reserved.