summaryrefslogtreecommitdiffstats
path: root/pmdictionaryvalidation/src/test/java/org/onap/validation/yaml/YamlLoaderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'pmdictionaryvalidation/src/test/java/org/onap/validation/yaml/YamlLoaderTest.java')
-rw-r--r--pmdictionaryvalidation/src/test/java/org/onap/validation/yaml/YamlLoaderTest.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/pmdictionaryvalidation/src/test/java/org/onap/validation/yaml/YamlLoaderTest.java b/pmdictionaryvalidation/src/test/java/org/onap/validation/yaml/YamlLoaderTest.java
index 36297ca..46cc5de 100644
--- a/pmdictionaryvalidation/src/test/java/org/onap/validation/yaml/YamlLoaderTest.java
+++ b/pmdictionaryvalidation/src/test/java/org/onap/validation/yaml/YamlLoaderTest.java
@@ -37,34 +37,34 @@ class YamlLoaderTest {
@Test
void shouldLoadAllDocumentsFromYamlFile() throws YamlDocumentFactory.YamlDocumentParsingException {
- // when
+ //when
List<YamlDocument> documents = YamlLoadingUtils.loadValidMultiDocumentYamlFile();
- // then
+ //then
assertThat(documents).hasSize(EXPECTED_NUMBER_OF_DOCUMENTS);
}
@Test
void shouldLoadAllDocumentsFromJsonStyleYamlFile() throws YamlDocumentFactory.YamlDocumentParsingException {
- // when
+ //when
List<YamlDocument> documents = YamlLoadingUtils.loadValidJsonStyleMultiDocumentYamlFile();
- // then
+ //then
assertThat(documents).hasSize(EXPECTED_NUMBER_OF_DOCUMENTS);
}
@Test
void shouldLoadAllDocumentsFromYamlFileUsingPathInString() throws YamlProcessingException {
- // when
+ //when
List<YamlDocument> documents = YamlLoadingUtils.loadValidMultiDocumentYamlFileUsingStringPath();
- // then
+ //then
assertThat(documents).hasSize(EXPECTED_NUMBER_OF_DOCUMENTS);
}
@Test
void shouldThrowExceptionWhenLoadingDocumentsFromInvalidYamlFile() {
- // when then
+ //when /then
assertThatThrownBy(YamlLoadingUtils::tryToLoadMultiDocumentInvalidYamlFile)
.isInstanceOf(ParserException.class)
.hasMessageContaining("expected the node content, but found '<document end>'");
@@ -72,7 +72,7 @@ class YamlLoaderTest {
@Test
void shouldThrowExceptionWhenLoadingDocumentsFromInvalidYamlFileUsingPathInString() {
- // when then
+ //when /then
assertThatThrownBy(YamlLoadingUtils::tryToLoadMultiDocumentInvalidYamlFileUsingStringPath)
.isInstanceOf(ParserException.class)
.hasMessageContaining("expected the node content, but found '<document end>'");
@@ -80,7 +80,7 @@ class YamlLoaderTest {
@Test
void shouldThrowExceptionWhenLoadingInvalidYamlFileWithIncorrectKeyMapping() {
- // when then
+ //when /then
assertThatThrownBy(YamlLoadingUtils::tryToLoadInvalidYamlFileWithIncorrectKeyMapping)
.isInstanceOf(ScannerException.class)
.hasMessageContaining("mapping values are not allowed here");
@@ -88,7 +88,7 @@ class YamlLoaderTest {
@Test
void shouldThrowExceptionWhenLoadingInvalidYamlFileWithUnknownEscapeCharacter() {
- // when then
+ //when /then
assertThatThrownBy(YamlLoadingUtils::tryToLoadInvalidYamlFileWithUnknownEscapeCharacter)
.isInstanceOf(ScannerException.class)
.hasMessageContaining("found unknown escape character " + LETTER_S_WITH_ASCII_CODE);