// Path: java2word/src/main/java/word/api/interfaces/IElement.java
// public interface IElement {
// 
// 	/**
// 	 * <p>This method returns the content (XML or HTML) of the Element and the content.</p>
// 	 * <p>If you are using W2004, the return will be the XML required to generate the element.</p>
// 	 *
// 	 * <p>Important: Once you call this method, the Document value is cached an no elements can be added later.</p>
// 	 *
// 	 * @return this is the String value of the element ready to be appended/inserted in the Document.<br>
// 	 *
// 	 * <p>This is the XML that generates a <code>BreakLine</code>:</p>
// 	 * <code>
// 	 *  <w:p wsp:rsidR='008979E8' wsp:rsidRDefault='008979E8'/>
// 	 * </code>
// 	 */
// 	public String getContent();
// 
// }
// 
// Path: java2word/src/main/java/word/api/interfaces/IFluentElement.java
// public interface IFluentElement <F>{
// 
// 	/**
// 	 * This method is just to keep the API consistent when you do something like:
// 	 * 		Heading1 myHEading = Heading1.with("h3333").<b>create();</b>
// 	 * It is just to have that "create()" at the end but the following code is the same:
// 	 * 		Heading1 myHEading = Heading1.with("h3333");
// 	 * 
// 	 * Anyway, it is here for sake of consistency or semantic
// 	 * 
// 	 * @return
// 	 * 
// 	 */
// 	public F create();
// 	
// }
// 
// Path: java2word/src/main/java/word/api/interfaces/ISuperStylin.java
// public interface ISuperStylin {
// 
// 	/**
// 	 *	This method will called by IElement.getContent();
// 	 */
// 	public String getNewContentWithStyle(String txt);
// 	
// 	/**
// 	 * 
// 	 *
// 	 */
// 	public void setElement(IElement element);
// 	
// 	/**
// 	 * This method returns the element. There should be a cast for the return. 
// 	 * The other option to avoid type cast is use covariant type return
// 	 *
// 	 */
// 	public IElement create();
// 	
// }
// 
// Path: java2word/src/main/java/word/utils/TestUtils.java
// public class TestUtils {
// 
// 	public static int regexCount(String text, String regex){
// 		if(text == null || regex == null){
// 			throw new IllegalArgumentException("Can't be null.");
// 		}
// 		Pattern pattern = Pattern.compile(regex);
// 		Matcher matcher = pattern.matcher(text);
// 		
// 		int total = 0;
// 		while (matcher.find()) {
// 			total ++;
//         }
// 		
// 		return total;
// 	}
// 	
// 	public static void createLocalDoc(String myDoc) {
// 	    createLocalDocument(myDoc, "Java2word_allInOne.doc");
// 	}
// 	
// 	public static void createLocalDoc(String myDoc, String fileName) {
// 	    if("".equals(fileName) || fileName == null) {
// 	        fileName = "Java2word_allInOne.doc";
// 	    }
// 	    createLocalDocument(myDoc, fileName);
// 	}
// 	
//     public static void createLocalDocument(String myDoc, String fileName) {
//         //Property prop = new Property("");
//         Properties prop = new Properties();
//         String tmpDocs = "";
//         try {            
//             prop.load(new FileInputStream("build.properties"));
//         } catch (IOException e) {
//             e.printStackTrace();
//         }
//         tmpDocs = (String) prop.get("tmp.docs.dir");
//         
//         //System.out.println(tmpDocs);
//         //"/home/leonardo/Desktop/Java2word_allInOne.doc"
//         
//         File fileObj = new File(tmpDocs + "/" + fileName);
// 
//         PrintWriter writer = null;
//         try {
//             writer = new PrintWriter(fileObj);
//         } catch (FileNotFoundException e) {
//             e.printStackTrace();
//         }
//         String myWord = myDoc;
// 
//         writer.println(myWord);
//         writer.close();
//     }
// 	
// }
// 
// Path: java2word/src/main/java/word/w2004/elements/BreakLine.java
// public class BreakLine implements IElement, IFluentElement<BreakLine> {
//     /**Number of repetitions.*/
//     private int times = 1;
// 
//     @Override
//     public final String getContent() {
//         StringBuilder res = new StringBuilder("");
//         applyBreakLineTimes(res);
//         return res.toString();
//     }
// 
//     /** Apply the repetition of break lines.
//      * @param res string to be added content
//      */
//     private void applyBreakLineTimes(final StringBuilder res) {
//         for (int i = 0; i < times; i++) {
//             res.append("\n<w:p wsp:rsidR=\"008979E8\" wsp:rsidRDefault=\"008979E8\"/>");
//         }
//     }
// 
//     /**
//      * constructor: Number of break lines you want to add.
//      * @param times number of breaklines
//      */
//     public BreakLine(final int times) {
//         this.times = times;
//     }
// 
//     /** constructor: By default, 1 Number of break line when no number is provided.
//      * @param times
//      */
//     public BreakLine() {
//     }
// 
//     /** Created Breaklines according to the number of times provided.
//      * @param value number of times
//      * @return the Breakline object ready to go!
//      */
//     public static BreakLine times(final Integer value) {
//         return new BreakLine(value);
//     }
// 
//     /** returns the Breakline object.
//      * @return the object breakline
//      */
//     @Override
//     public final BreakLine create() {
//         return this;
//     }
// 
// }


import junit.framework.Assert;
import org.junit.Test;
import word.api.interfaces.IElement;
import word.api.interfaces.IFluentElement;
import word.api.interfaces.ISuperStylin;
import word.utils.TestUtils;
import word.w2004.elements.BreakLine;
package word.w2004;




public class BreakLineTest extends Assert {
    
    @Test
    public void testBreakDefaultTest() {
// Path: java2word/src/main/java/word/api/interfaces/IElement.java
// public interface IElement {
// 
// 	/**
// 	 * <p>This method returns the content (XML or HTML) of the Element and the content.</p>
// 	 * <p>If you are using W2004, the return will be the XML required to generate the element.</p>
// 	 *
// 	 * <p>Important: Once you call this method, the Document value is cached an no elements can be added later.</p>
// 	 *
// 	 * @return this is the String value of the element ready to be appended/inserted in the Document.<br>
// 	 *
// 	 * <p>This is the XML that generates a <code>BreakLine</code>:</p>
// 	 * <code>
// 	 *  <w:p wsp:rsidR='008979E8' wsp:rsidRDefault='008979E8'/>
// 	 * </code>
// 	 */
// 	public String getContent();
// 
// }
// 
// Path: java2word/src/main/java/word/api/interfaces/IFluentElement.java
// public interface IFluentElement <F>{
// 
// 	/**
// 	 * This method is just to keep the API consistent when you do something like:
// 	 * 		Heading1 myHEading = Heading1.with("h3333").<b>create();</b>
// 	 * It is just to have that "create()" at the end but the following code is the same:
// 	 * 		Heading1 myHEading = Heading1.with("h3333");
// 	 * 
// 	 * Anyway, it is here for sake of consistency or semantic
// 	 * 
// 	 * @return
// 	 * 
// 	 */
// 	public F create();
// 	
// }
// 
// Path: java2word/src/main/java/word/api/interfaces/ISuperStylin.java
// public interface ISuperStylin {
// 
// 	/**
// 	 *	This method will called by IElement.getContent();
// 	 */
// 	public String getNewContentWithStyle(String txt);
// 	
// 	/**
// 	 * 
// 	 *
// 	 */
// 	public void setElement(IElement element);
// 	
// 	/**
// 	 * This method returns the element. There should be a cast for the return. 
// 	 * The other option to avoid type cast is use covariant type return
// 	 *
// 	 */
// 	public IElement create();
// 	
// }
// 
// Path: java2word/src/main/java/word/utils/TestUtils.java
// public class TestUtils {
// 
// 	public static int regexCount(String text, String regex){
// 		if(text == null || regex == null){
// 			throw new IllegalArgumentException("Can't be null.");
// 		}
// 		Pattern pattern = Pattern.compile(regex);
// 		Matcher matcher = pattern.matcher(text);
// 		
// 		int total = 0;
// 		while (matcher.find()) {
// 			total ++;
//         }
// 		
// 		return total;
// 	}
// 	
// 	public static void createLocalDoc(String myDoc) {
// 	    createLocalDocument(myDoc, "Java2word_allInOne.doc");
// 	}
// 	
// 	public static void createLocalDoc(String myDoc, String fileName) {
// 	    if("".equals(fileName) || fileName == null) {
// 	        fileName = "Java2word_allInOne.doc";
// 	    }
// 	    createLocalDocument(myDoc, fileName);
// 	}
// 	
//     public static void createLocalDocument(String myDoc, String fileName) {
//         //Property prop = new Property("");
//         Properties prop = new Properties();
//         String tmpDocs = "";
//         try {            
//             prop.load(new FileInputStream("build.properties"));
//         } catch (IOException e) {
//             e.printStackTrace();
//         }
//         tmpDocs = (String) prop.get("tmp.docs.dir");
//         
//         //System.out.println(tmpDocs);
//         //"/home/leonardo/Desktop/Java2word_allInOne.doc"
//         
//         File fileObj = new File(tmpDocs + "/" + fileName);
// 
//         PrintWriter writer = null;
//         try {
//             writer = new PrintWriter(fileObj);
//         } catch (FileNotFoundException e) {
//             e.printStackTrace();
//         }
//         String myWord = myDoc;
// 
//         writer.println(myWord);
//         writer.close();
//     }
// 	
// }
// 
// Path: java2word/src/main/java/word/w2004/elements/BreakLine.java
// public class BreakLine implements IElement, IFluentElement<BreakLine> {
//     /**Number of repetitions.*/
//     private int times = 1;
// 
//     @Override
//     public final String getContent() {
//         StringBuilder res = new StringBuilder("");
//         applyBreakLineTimes(res);
//         return res.toString();
//     }
// 
//     /** Apply the repetition of break lines.
//      * @param res string to be added content
//      */
//     private void applyBreakLineTimes(final StringBuilder res) {
//         for (int i = 0; i < times; i++) {
//             res.append("\n<w:p wsp:rsidR=\"008979E8\" wsp:rsidRDefault=\"008979E8\"/>");
//         }
//     }
// 
//     /**
//      * constructor: Number of break lines you want to add.
//      * @param times number of breaklines
//      */
//     public BreakLine(final int times) {
//         this.times = times;
//     }
// 
//     /** constructor: By default, 1 Number of break line when no number is provided.
//      * @param times
//      */
//     public BreakLine() {
//     }
// 
//     /** Created Breaklines according to the number of times provided.
//      * @param value number of times
//      * @return the Breakline object ready to go!
//      */
//     public static BreakLine times(final Integer value) {
//         return new BreakLine(value);
//     }
// 
//     /** returns the Breakline object.
//      * @return the object breakline
//      */
//     @Override
//     public final BreakLine create() {
//         return this;
//     }
// 
// }


// Path: java2word/src/test/java/word/w2004/BreakLineTest.java
import junit.framework.Assert;
import org.junit.Test;
import word.api.interfaces.IElement;
import word.api.interfaces.IFluentElement;
import word.api.interfaces.ISuperStylin;
import word.utils.TestUtils;
import word.w2004.elements.BreakLine;

package word.w2004;




public class BreakLineTest extends Assert {
    
    @Test
    public void testBreakDefaultTest() {
        BreakLine br = new BreakLine();