Skip to content

Commit

Permalink
Updated all version of diktat (including tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
orchestr7 committed Jun 30, 2022
1 parent 502a8f0 commit 2b93b1b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ public class DiktatStep {
// prevent direct instantiation
private DiktatStep() {}

private static final String MIN_SUPPORTED_VERSION = "1.2.0";
private static final String MIN_SUPPORTED_VERSION = "1.2.1";

private static final String DEFAULT_VERSION = "1.2.0";
private static final String DEFAULT_VERSION = "1.2.1";
static final String NAME = "diktat";
static final String PACKAGE_DIKTAT = "org.cqfn.diktat";
static final String MAVEN_COORDINATE = PACKAGE_DIKTAT + ":diktat-rules:";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void testDiktatWithVersion() throws Exception {

writePomWithKotlinSteps(
"<diktat>",
" <version>1.2.0</version>",
" <version>1.2.1</version>",
"</diktat>");

String path = "src/main/kotlin/Main.kt";
Expand All @@ -56,7 +56,7 @@ void testDiktatConfig() throws Exception {
File conf = setFile(configPath).toResource("kotlin/diktat/diktat-analysis.yml");
writePomWithKotlinSteps(
"<diktat>",
" <version>1.2.0</version>",
" <version>1.2.1</version>",
" <configFile>" + conf.getAbsolutePath() + "</configFile>",
"</diktat>");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void behaviorConf() throws Exception {
File conf = setFile(configPath).toResource("kotlin/diktat/diktat-analysis.yml");
FileSignature config = signAsList(conf);

FormatterStep step = DiktatStep.create("1.2.0", TestProvisioner.mavenCentral(), config);
FormatterStep step = DiktatStep.create("1.2.1", TestProvisioner.mavenCentral(), config);
StepHarness.forStep(step)
.testResourceException("kotlin/diktat/Unsolvable.kt", assertion -> {
assertion.isInstanceOf(AssertionError.class);
Expand Down

0 comments on commit 2b93b1b

Please sign in to comment.