/** * This is a different fluent way. * Because there is no create "with", we will have to create a static method to return an instance of the pageBreak. * * Notice that this class doesn't implement IFluentInterface. * * */ public static PageBreak create() { return new PageBreak(); }
/** * This is a different fluent way. * Because there is no create "with", we will have to create a static method to return an instance of the pageBreak. * * Notice that this class doesn't implement IFluentInterface. * * */ public static PageBreak create() { return new PageBreak(); }
@Test public void testPageBreak(){ PageBreak pb = new PageBreak(); assertEquals(1, TestUtils.regexCount(pb.getContent(), "<w:br w:type=\"page\" />")); }