Search in sources :

Example 1 with RuleConfiguration

use of com.buschmais.jqassistant.core.rule.api.reader.RuleConfiguration in project jqa-core-framework by buschmais.

the class SeverityTest method asciidocRuleDefaultSeverity.

@Test
public void asciidocRuleDefaultSeverity() throws RuleException {
    RuleConfiguration ruleConfiguration = RuleConfiguration.builder().build();
    RuleSet ruleSet = RuleSetTestHelper.readRuleSet("/severity.adoc", ruleConfiguration);
    verifyRuleDefaultSeverity(ruleSet);
}
Also used : RuleConfiguration(com.buschmais.jqassistant.core.rule.api.reader.RuleConfiguration) Test(org.junit.Test)

Example 2 with RuleConfiguration

use of com.buschmais.jqassistant.core.rule.api.reader.RuleConfiguration in project jqa-core-framework by buschmais.

the class SeverityTest method asciidocDefaultSeverity.

@Test
public void asciidocDefaultSeverity() throws RuleException {
    RuleConfiguration ruleConfiguration = RuleConfiguration.builder().defaultConceptSeverity(Severity.CRITICAL).defaultConstraintSeverity(Severity.CRITICAL).defaultGroupSeverity(Severity.CRITICAL).build();
    RuleSet ruleSet = RuleSetTestHelper.readRuleSet("/severity.adoc", ruleConfiguration);
    verifyDefaultSeverities(ruleSet, Severity.CRITICAL);
}
Also used : RuleConfiguration(com.buschmais.jqassistant.core.rule.api.reader.RuleConfiguration) Test(org.junit.Test)

Example 3 with RuleConfiguration

use of com.buschmais.jqassistant.core.rule.api.reader.RuleConfiguration in project jqa-core-framework by buschmais.

the class SeverityTest method asciidocDefaultSeverity.

@Test
void asciidocDefaultSeverity() throws RuleException {
    RuleConfiguration ruleConfiguration = RuleConfiguration.builder().defaultConceptSeverity(Severity.CRITICAL).defaultConstraintSeverity(Severity.CRITICAL).defaultGroupSeverity(Severity.CRITICAL).build();
    RuleSet ruleSet = RuleSetTestHelper.readRuleSet("/severity.adoc", ruleConfiguration);
    verifyDefaultSeverities(ruleSet, Severity.CRITICAL);
}
Also used : RuleConfiguration(com.buschmais.jqassistant.core.rule.api.reader.RuleConfiguration) Test(org.junit.jupiter.api.Test)

Example 4 with RuleConfiguration

use of com.buschmais.jqassistant.core.rule.api.reader.RuleConfiguration in project jqa-core-framework by jQAssistant.

the class SeverityTest method asciidocDefaultSeverity.

@Test
void asciidocDefaultSeverity() throws RuleException {
    RuleConfiguration ruleConfiguration = RuleConfiguration.builder().defaultConceptSeverity(Severity.CRITICAL).defaultConstraintSeverity(Severity.CRITICAL).defaultGroupSeverity(Severity.CRITICAL).build();
    RuleSet ruleSet = RuleSetTestHelper.readRuleSet("/severity.adoc", ruleConfiguration);
    verifyDefaultSeverities(ruleSet, Severity.CRITICAL);
}
Also used : RuleConfiguration(com.buschmais.jqassistant.core.rule.api.reader.RuleConfiguration) Test(org.junit.jupiter.api.Test)

Example 5 with RuleConfiguration

use of com.buschmais.jqassistant.core.rule.api.reader.RuleConfiguration in project jqa-core-framework by jQAssistant.

the class SeverityTest method asciidocRuleDefaultSeverity.

@Test
void asciidocRuleDefaultSeverity() throws RuleException {
    RuleConfiguration ruleConfiguration = RuleConfiguration.builder().build();
    RuleSet ruleSet = RuleSetTestHelper.readRuleSet("/severity.adoc", ruleConfiguration);
    verifyRuleDefaultSeverity(ruleSet);
}
Also used : RuleConfiguration(com.buschmais.jqassistant.core.rule.api.reader.RuleConfiguration) Test(org.junit.jupiter.api.Test)

Aggregations

RuleConfiguration (com.buschmais.jqassistant.core.rule.api.reader.RuleConfiguration)13 Test (org.junit.jupiter.api.Test)8 Test (org.junit.Test)4 CliConfigurationException (com.buschmais.jqassistant.commandline.CliConfigurationException)1 MalformedURLException (java.net.MalformedURLException)1 URL (java.net.URL)1