ThemeQueryCatalogPharmaTest.java

/*******************************************************************************
 * Copyright (c) 2025 Eclipse RDF4J contributors.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Distribution License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 *******************************************************************************/
// Some portions generated by Codex
package org.eclipse.rdf4j.benchmark.common;

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

import java.util.List;

import org.eclipse.rdf4j.benchmark.rio.util.ThemeDataSetGenerator.Theme;
import org.junit.jupiter.api.Test;

class ThemeQueryCatalogPharmaTest {

	@Test
	void pharmaThemeHasQueries() {
		Theme theme = Enum.valueOf(Theme.class, "PHARMA");
		List<String> queries = ThemeQueryCatalog.queriesFor(theme);
		assertNotNull(queries, "Queries should be registered for PHARMA theme");
		assertEquals(ThemeQueryCatalog.QUERY_COUNT, queries.size(),
				"PHARMA theme should expose the standard query count");
		assertTrue(queries.stream().anyMatch(query -> query.contains("pharma:Drug")),
				"PHARMA queries should reference pharma:Drug");
	}
}