Search in sources :

Example 1 with TableBlock

use of org.commonmark.ext.gfm.tables.TableBlock in project hippo by NHS-digital-website.

the class ThematicBreakAttributeProviderTest method ignoresElementOtherThanThematicBreak.

@Test
public void ignoresElementOtherThanThematicBreak() {
    // given
    final Node nodeOtherThanThematicBreak = new TableBlock();
    // when
    thematicBreakAttributeProvider.setAttributes(nodeOtherThanThematicBreak, "tagName is ignored", attributes);
    // then
    then(attributes).shouldHaveZeroInteractions();
}
Also used : TableBlock(org.commonmark.ext.gfm.tables.TableBlock) Node(org.commonmark.node.Node) Test(org.junit.Test)

Example 2 with TableBlock

use of org.commonmark.ext.gfm.tables.TableBlock in project hippo by NHS-digital-website.

the class CodeAttributeProviderTest method ignoresElementOtherThanCode.

@Test
public void ignoresElementOtherThanCode() {
    // given
    final Node nodeOtherThanCode = new TableBlock();
    // when
    codeAttributeProvider.setAttributes(nodeOtherThanCode, "tagName is ignored", attributes);
    // then
    then(attributes).shouldHaveZeroInteractions();
}
Also used : TableBlock(org.commonmark.ext.gfm.tables.TableBlock) Node(org.commonmark.node.Node) Test(org.junit.Test)

Example 3 with TableBlock

use of org.commonmark.ext.gfm.tables.TableBlock in project hippo by NHS-digital-website.

the class HyperlinkAttributeProviderTest method ignoresElementOtherThanLink.

@Test
public void ignoresElementOtherThanLink() {
    // given
    final Node nodeOtherThanLink = new TableBlock();
    // when
    hyperlinkAttributeProvider.setAttributes(nodeOtherThanLink, "tagName is ignored", attributes);
    // then
    then(attributes).shouldHaveZeroInteractions();
}
Also used : TableBlock(org.commonmark.ext.gfm.tables.TableBlock) Node(org.commonmark.node.Node) Test(org.junit.Test)

Aggregations

TableBlock (org.commonmark.ext.gfm.tables.TableBlock)3 Node (org.commonmark.node.Node)3 Test (org.junit.Test)3