package p.packer.testing;

import org.junit.jupiter.api.Test;

import java.nio.file.Files;
import java.nio.file.Path;

import static org.junit.jupiter.api.Assertions.assertTrue;

final class PackerFixtureCatalogTest {
    @Test
    void exposesWorkspaceFixturesForFuturePackerTests() {
        final Path emptyWorkspace = PackerFixtureLocator.fixtureRoot("workspaces/empty");
        final Path managedWorkspace = PackerFixtureLocator.fixtureRoot("workspaces/managed-basic");

        assertTrue(Files.isDirectory(emptyWorkspace));
        assertTrue(Files.isDirectory(managedWorkspace));
        assertTrue(Files.isRegularFile(managedWorkspace.resolve("assets/.prometeu/index.json")));
        assertTrue(Files.isRegularFile(managedWorkspace.resolve("assets/ui/atlas/asset.json")));
    }
}
