Package org.xwiki.rendering.test
Class BlockAssert
- java.lang.Object
-
- org.xwiki.rendering.test.BlockAssert
-
@Deprecated public class BlockAssert extends Object
Deprecated.starting with 11.6RC1 useBlockAssert
insteadClass to be imported in unit tests as a static import and which contains helper methods to assert Rendering Blocks.- Since:
- 2.4M2
- Version:
- $Id: 9d6371498e4a2c048f51ff15871a9914adc9e357 $
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BlockAssert()
Deprecated.Protect constructor since it is a static only class.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
assertBlocks(String expected, List<Block> blocks, PrintRendererFactory factory)
Deprecated.static void
assertBlocksStartsWith(String expectedPrefix, List<Block> blocks, PrintRendererFactory factory)
Deprecated.
-
-
-
Method Detail
-
assertBlocks
public static void assertBlocks(String expected, List<Block> blocks, PrintRendererFactory factory)
Deprecated.- Parameters:
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 String
-
assertBlocksStartsWith
public static void assertBlocksStartsWith(String expectedPrefix, List<Block> blocks, PrintRendererFactory factory)
Deprecated.- Parameters:
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 String- Since:
- 4.2M1
-
-