-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set major.minor in json schema path name
- Loading branch information
Showing
8 changed files
with
78 additions
and
21 deletions.
There are no files selected for viewing
7 changes: 3 additions & 4 deletions
7
...line/test/CliJsonSchemaGeneratorTest.java → ...line/task/CliJsonSchemaGeneratorTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
package com.buschmais.jqassistant.commandline.test; | ||
package com.buschmais.jqassistant.commandline.task; | ||
|
||
import com.buschmais.jqassistant.commandline.configuration.CliConfiguration; | ||
import com.buschmais.jqassistant.core.runtime.api.configuration.JsonSchemaGenerator; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import org.assertj.core.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
class CliJsonSchemaGeneratorTest { | ||
|
||
@Test | ||
void generateSchemaAndValidate() throws Exception { | ||
JsonSchemaGenerator generator = new JsonSchemaGenerator(); | ||
String path = "target/generated-resources/schema/jqassistant-configuration-cli.schema.json"; | ||
JsonNode node = generator.generateSchema(CliConfiguration.class, path); | ||
assertThat(generator.validateYaml("src/test/resources/validCliYaml.yaml", node)).isEmpty(); | ||
Assertions.assertThat(generator.validateYaml("src/test/resources/validCliYaml.yaml", node)).isEmpty(); | ||
} | ||
|
||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
core/runtime/src/main/resources/META-INF/jqassistant.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
jqassistant.version=${project.version} | ||
jqassistant.version.major = ${parsedVersion.majorVersion} | ||
jqassistant.version.minor = ${parsedVersion.minorVersion} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters