Package br.com.caelum.tubaina.chunk

Examples of br.com.caelum.tubaina.chunk.RubyChunk


 
  @Test(expected=Exception.class)
  public void tagIsDeprecatedAndParsingAgainstItWillAlwaysThrowAnException() {
    RubyTag rubyTag = new RubyTag(new SimpleIndentator(4));
    String code = "# this is a ruby comment";
    RubyChunk chunk = new RubyChunk(code, "");
    rubyTag.parse(chunk);
  }
View Full Code Here


@Deprecated
public class RubyTagTest extends AbstractTagTest {

  @Test(expected = Exception.class)
  public void tagIsDeprecatedAndParsingAgainstItWillAlwaysThrowAnException() {
    RubyChunk chunk = new RubyChunk("# this is a ruby comment", "#");
    getContent(chunk);
  }
View Full Code Here

  public Chunk createChunk(String options, String content) {
    int maxLineLength = Utilities.maxLineLength(content) - Utilities.getMinIndent(content);
    if(maxLineLength >TubainaBuilder.getCodeLength())
      throw new TubainaException ("Chapter " + ChapterBuilder.getChaptersCount() +
          "  -  Code has " + maxLineLength + " columns out of " + TubainaBuilder.getCodeLength() + ":\n\n" + content);
    return new RubyChunk(content, options);
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.tubaina.chunk.RubyChunk

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.