Search in sources :

Example 51 with SpecExample

use of com.vladsch.flexmark.spec.SpecExample in project flexmark-java by vsch.

the class ComboHtmlAttributeParserIssueTest method data.

@Parameterized.Parameters(name = "{0}")
public static List<Object[]> data() {
    List<SpecExample> examples = SpecReader.readExamples(SPEC_RESOURCE);
    List<Object[]> data = new ArrayList<Object[]>();
    // NULL example runs full spec test
    data.add(new Object[] { SpecExample.NULL });
    for (SpecExample example : examples) {
        // flip source and html
        data.add(new Object[] { example });
    }
    return data;
}
Also used : SpecExample(com.vladsch.flexmark.spec.SpecExample) ArrayList(java.util.ArrayList)

Example 52 with SpecExample

use of com.vladsch.flexmark.spec.SpecExample in project flexmark-java by vsch.

the class ComboHtmlParserIssueTest method data.

@Parameterized.Parameters(name = "{0}")
public static List<Object[]> data() {
    List<SpecExample> examples = SpecReader.readExamples(SPEC_RESOURCE);
    List<Object[]> data = new ArrayList<Object[]>();
    // NULL example runs full spec test
    data.add(new Object[] { SpecExample.NULL });
    for (SpecExample example : examples) {
        // flip source and html
        data.add(new Object[] { example });
    }
    return data;
}
Also used : SpecExample(com.vladsch.flexmark.spec.SpecExample) ArrayList(java.util.ArrayList)

Example 53 with SpecExample

use of com.vladsch.flexmark.spec.SpecExample in project flexmark-java by vsch.

the class BoundsIntegrationTest method data.

@Parameterized.Parameters(name = "{0}")
public static List<Object[]> data() {
    List<SpecExample> examples = SpecReader.readExamples();
    List<Object[]> data = new ArrayList<Object[]>();
    for (SpecExample example : examples) {
        data.add(new Object[] { example.getSource() });
    }
    return data;
}
Also used : SpecExample(com.vladsch.flexmark.spec.SpecExample) ArrayList(java.util.ArrayList)

Example 54 with SpecExample

use of com.vladsch.flexmark.spec.SpecExample in project flexmark-java by vsch.

the class ComboParserTest method data.

@Parameterized.Parameters(name = "{0}")
public static List<Object[]> data() {
    List<SpecExample> examples = SpecReader.readExamples(SPEC_RESOURCE);
    List<Object[]> data = new ArrayList<Object[]>();
    // NULL example runs full spec test
    data.add(new Object[] { SpecExample.NULL });
    for (SpecExample example : examples) {
        data.add(new Object[] { example });
    }
    return data;
}
Also used : SpecExample(com.vladsch.flexmark.spec.SpecExample)

Example 55 with SpecExample

use of com.vladsch.flexmark.spec.SpecExample in project flexmark-java by vsch.

the class ComboJiraConverterSpecTest method data.

@Parameterized.Parameters(name = "{0}")
public static List<Object[]> data() {
    List<SpecExample> examples = SpecReader.readExamples(SPEC_RESOURCE);
    List<Object[]> data = new ArrayList<Object[]>();
    // NULL example runs full spec test
    data.add(new Object[] { SpecExample.NULL });
    for (SpecExample example : examples) {
        data.add(new Object[] { example });
    }
    return data;
}
Also used : SpecExample(com.vladsch.flexmark.spec.SpecExample)

Aggregations

SpecExample (com.vladsch.flexmark.spec.SpecExample)83 ArrayList (java.util.ArrayList)30 Docx4JException (org.docx4j.openpackaging.exceptions.Docx4JException)3 WordprocessingMLPackage (org.docx4j.openpackaging.packages.WordprocessingMLPackage)3 Parameters (org.junit.runners.Parameterized.Parameters)1