Skip to content

Commit 759d6b2

Browse files
authored
[YAML] Move YAML test files in sub-folders (#5331)
Move YAML test files in sub-folders Tests for YamlThingProvider moved in a separate class. Also test that a thing change listener is properly called when loading a YAML file containing things. Signed-off-by: Laurent Garnier <lg.hc@free.fr>
1 parent 0e9ca96 commit 759d6b2

8 files changed

Lines changed: 704 additions & 645 deletions

File tree

bundles/org.openhab.core.model.yaml/src/test/java/org/openhab/core/model/yaml/internal/YamlModelRepositoryImplTest.java

Lines changed: 4 additions & 645 deletions
Large diffs are not rendered by default.

bundles/org.openhab.core.model.yaml/src/test/java/org/openhab/core/model/yaml/internal/things/YamlThingProviderTest.java

Lines changed: 700 additions & 0 deletions
Large diffs are not rendered by default.

bundles/org.openhab.core.model.yaml/src/test/resources/model/itemWithMixedFormMetadata.yaml renamed to bundles/org.openhab.core.model.yaml/src/test/resources/model/items/itemWithMixedFormMetadata.yaml

File renamed without changes.

bundles/org.openhab.core.model.yaml/src/test/resources/model/itemWithObjectFormMetadata.yaml renamed to bundles/org.openhab.core.model.yaml/src/test/resources/model/items/itemWithObjectFormMetadata.yaml

File renamed without changes.

bundles/org.openhab.core.model.yaml/src/test/resources/model/itemWithShortFormMetadata.yaml renamed to bundles/org.openhab.core.model.yaml/src/test/resources/model/items/itemWithShortFormMetadata.yaml

File renamed without changes.

bundles/org.openhab.core.model.yaml/src/test/resources/model/modelWithThing.yaml renamed to bundles/org.openhab.core.model.yaml/src/test/resources/model/things/thing.yaml

File renamed without changes.

bundles/org.openhab.core.model.yaml/src/test/resources/model/modelWithThingEmptyConfig.yaml renamed to bundles/org.openhab.core.model.yaml/src/test/resources/model/things/thingWithEmptyConfig.yaml

File renamed without changes.

bundles/org.openhab.core.model.yaml/src/test/resources/model/modelWithThingNumberInTextParam.yaml renamed to bundles/org.openhab.core.model.yaml/src/test/resources/model/things/thingWithNumberInTextParam.yaml

File renamed without changes.

0 commit comments

Comments
 (0)