public class BlockAssert extends Object
Modifier | Constructor and Description |
---|---|
protected |
BlockAssert()
Protect constructor since it is a static only class.
|
Modifier and Type | Method and Description |
---|---|
static void |
assertBlocks(String expected,
List<Block> blocks,
PrintRendererFactory factory) |
static void |
assertBlocksStartsWith(String expectedPrefix,
List<Block> blocks,
PrintRendererFactory factory) |
protected BlockAssert()
public static void assertBlocks(String expected, List<Block> blocks, PrintRendererFactory factory)
expected
- the expected value of passed Blocks when rendered using the passed Renderer Factoryblocks
- the Blocks to assertfactory
- the Renderer Factory to use to serialize the passed Block and to compare them with the passed
Stringpublic static void assertBlocksStartsWith(String expectedPrefix, List<Block> blocks, PrintRendererFactory factory)
expectedPrefix
- the expected prefix of the passed Blocks when rendered using the passed Renderer Factoryblocks
- the Blocks to assertfactory
- the Renderer Factory to use to serialize the passed Block and to compare them with the passed
StringCopyright © 2004–2021 XWiki. All rights reserved.