// Path: Source/MarkdownGenerator/src/main/java/net/steppschuh/markdowngenerator/text/Text.java
// public class Text extends MarkdownElement implements MarkdownCascadable {
// 
//     protected Object value;
// 
//     public Text(Object value) {
//         this.value = value;
//     }
// 
//     @Override
//     public String serialize() throws MarkdownSerializationException {
//         if (value == null) {
//             throw new MarkdownSerializationException("Value is null");
//         }
//         return getPredecessor() + value.toString() + getSuccessor();
//     }
// 
//     @Override
//     public String getPredecessor() {
//         return "";
//     }
// 
//     @Override
//     public String getSuccessor() {
//         return getPredecessor();
//     }
// 
//     public Object getValue() {
//         return value;
//     }
// 
//     public void setValue(Object value) {
//         this.value = value;
//         invalidateSerialized();
//     }
// 
// }


import net.steppschuh.markdowngenerator.text.Text;
import org.junit.Test;
package net.steppschuh.markdowngenerator.text.code;



/**
 * Created by steppschuh on 15/12/2016.
 */
public class CodeBlockTest {

    @Test
    public void example1() throws Exception {
        String code = "System.out.println(\"I am a code block\");";
        Text text = new CodeBlock(code);
        System.out.println(text);
    }

    @Test
    public void example2() throws Exception {
        String code = "// notice this new line\n" +
                "System.out.println(\"Hello\");";
// Path: Source/MarkdownGenerator/src/main/java/net/steppschuh/markdowngenerator/text/Text.java
// public class Text extends MarkdownElement implements MarkdownCascadable {
// 
//     protected Object value;
// 
//     public Text(Object value) {
//         this.value = value;
//     }
// 
//     @Override
//     public String serialize() throws MarkdownSerializationException {
//         if (value == null) {
//             throw new MarkdownSerializationException("Value is null");
//         }
//         return getPredecessor() + value.toString() + getSuccessor();
//     }
// 
//     @Override
//     public String getPredecessor() {
//         return "";
//     }
// 
//     @Override
//     public String getSuccessor() {
//         return getPredecessor();
//     }
// 
//     public Object getValue() {
//         return value;
//     }
// 
//     public void setValue(Object value) {
//         this.value = value;
//         invalidateSerialized();
//     }
// 
// }


// Path: Source/MarkdownGenerator/src/test/java/net/steppschuh/markdowngenerator/text/code/CodeBlockTest.java
import net.steppschuh.markdowngenerator.text.Text;
import org.junit.Test;

package net.steppschuh.markdowngenerator.text.code;



/**
 * Created by steppschuh on 15/12/2016.
 */
public class CodeBlockTest {

    @Test
    public void example1() throws Exception {
        String code = "System.out.println(\"I am a code block\");";
        Text text = new CodeBlock(code);
        System.out.println(text);
    }

    @Test
    public void example2() throws Exception {
        String code = "// notice this new line\n" +
                "System.out.println(\"Hello\");";
        Text text = new CodeBlock(code, "Java");