@@ -0,0 +1,2039 @@
+/*%0A * Copyright 2019, TeamDev. All rights reserved.%0A *%0A * Redistribution and use in source and/or binary forms, with or without%0A * modification, must retain the above copyright notice and the following%0A * disclaimer.%0A *%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS%0A * %22AS IS%22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT%0A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR%0A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT%0A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,%0A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT%0A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,%0A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY%0A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT%0A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE%0A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.%0A */%0A%0Apackage io.spine.io;%0A%0Aimport org.junit.jupiter.api.DisplayName;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.extension.ExtendWith;%0Aimport org.junitpioneer.jupiter.TempDirectory;%0Aimport org.junitpioneer.jupiter.TempDirectory.TempDir;%0A%0Aimport java.io.File;%0Aimport java.net.URL;%0Aimport java.nio.file.Path;%0Aimport java.util.Iterator;%0Aimport java.util.UUID;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertFalse;%0A%0A@DisplayName(%22Resource files should%22)%0A@ExtendWith(TempDirectory.class)%0Aclass ResourceFilesTest %7B%0A%0A    @Test%0A    @DisplayName(%22return an empty iterator if queried for a non-existing file %22)%0A    void throwOnInvalidFileName(@TempDir Path path) %7B%0A        Path nonExistentFilePath = path.resolve(UUID.randomUUID()%0A                                                    .toString());%0A        File nonExistingFile = nonExistentFilePath.toFile();%0A        String name = nonExistingFile.getName();%0A        Iterator%3CURL%3E result = ResourceFiles.loadAll(name);%0A        assertFalse(result.hasNext());%0A    %7D%0A%7D%0A

Add a resource files test.