columns = Arrays.asList("user_id", "group_id");
@@ -108,7 +97,6 @@ class MySQLDialectProviderTest {
class LockingStrategyTests {
@Test
- @Story("Build SELECT FOR UPDATE SKIP LOCKED")
@DisplayName("Should build SELECT FOR UPDATE SKIP LOCKED")
void shouldBuildSelectForUpdateSkipLocked() {
String baseQuery = "SELECT * FROM calculation_job WHERE state = 'CREATED'";
@@ -119,7 +107,6 @@ class MySQLDialectProviderTest {
}
@Test
- @Story("Build SELECT FOR UPDATE")
@DisplayName("Should build SELECT FOR UPDATE")
void shouldBuildSelectForUpdate() {
String baseQuery = "SELECT * FROM calculation_job WHERE id = ?";
@@ -135,14 +122,12 @@ class MySQLDialectProviderTest {
class DateTimeFunctionTests {
@Test
- @Story("Return NOW() for current timestamp")
@DisplayName("Should return NOW() for current timestamp")
void shouldReturnNowForCurrentTimestamp() {
assertEquals("NOW()", provider.getCurrentTimestamp());
}
@Test
- @Story("Build date subtraction with NOW()")
@DisplayName("Should build date subtraction with NOW()")
void shouldBuildDateSubtractionWithNow() {
String result = provider.buildDateSubtraction(null, "3", SqlDialectProvider.DateUnit.DAY);
@@ -150,7 +135,6 @@ class MySQLDialectProviderTest {
}
@Test
- @Story("Build date subtraction with custom base date")
@DisplayName("Should build date subtraction with custom base date")
void shouldBuildDateSubtractionWithCustomBaseDate() {
String result = provider.buildDateSubtraction("calculation_date", "60", SqlDialectProvider.DateUnit.MINUTE);
@@ -158,7 +142,6 @@ class MySQLDialectProviderTest {
}
@Test
- @Story("Build date addition with NOW()")
@DisplayName("Should build date addition with NOW()")
void shouldBuildDateAdditionWithNow() {
String result = provider.buildDateAddition(null, "7", SqlDialectProvider.DateUnit.DAY);
@@ -166,7 +149,6 @@ class MySQLDialectProviderTest {
}
@Test
- @Story("Build date addition with custom base date")
@DisplayName("Should build date addition with custom base date")
void shouldBuildDateAdditionWithCustomBaseDate() {
String result = provider.buildDateAddition("start_date", "1", SqlDialectProvider.DateUnit.MONTH);
@@ -174,7 +156,6 @@ class MySQLDialectProviderTest {
}
@Test
- @Story("Extract date from column")
@DisplayName("Should extract date from column")
void shouldExtractDateFromColumn() {
String result = provider.extractDate("created_at");
@@ -182,7 +163,6 @@ class MySQLDialectProviderTest {
}
@Test
- @Story("Extract date from expression")
@DisplayName("Should extract date from expression")
void shouldExtractDateFromExpression() {
String result = provider.extractDate("NOW()");
@@ -195,7 +175,6 @@ class MySQLDialectProviderTest {
class AutoIncrementResetTests {
@Test
- @Story("Build auto-increment reset statement")
@DisplayName("Should build auto-increment reset statement")
void shouldBuildAutoIncrementResetStatement() {
String result = provider.buildAutoIncrementReset("test_table");
@@ -208,7 +187,6 @@ class MySQLDialectProviderTest {
class GeospatialDistanceTests {
@Test
- @Story("Build Haversine distance calculation in kilometers")
@DisplayName("Should build Haversine distance calculation in kilometers")
void shouldBuildHaversineDistanceCalculation() {
String result = provider.buildHaversineDistance("50.1", "8.6", "node.geo_lat", "node.geo_lng");
@@ -232,7 +210,6 @@ class MySQLDialectProviderTest {
class StringTypeFunctionTests {
@Test
- @Story("Build CONCAT with multiple expressions")
@DisplayName("Should build CONCAT with multiple expressions")
void shouldBuildConcatWithMultipleExpressions() {
String result = provider.buildConcat("first_name", "' '", "last_name");
@@ -240,7 +217,6 @@ class MySQLDialectProviderTest {
}
@Test
- @Story("Build CONCAT with single expression")
@DisplayName("Should build CONCAT with single expression")
void shouldBuildConcatWithSingleExpression() {
String result = provider.buildConcat("column_name");
@@ -248,7 +224,6 @@ class MySQLDialectProviderTest {
}
@Test
- @Story("Cast to string")
@DisplayName("Should cast to string")
void shouldCastToString() {
String result = provider.castToString("user_id");
@@ -261,21 +236,18 @@ class MySQLDialectProviderTest {
class BulkOperationTests {
@Test
- @Story("Return MySQL BIGINT UNSIGNED max value")
@DisplayName("Should return MySQL BIGINT UNSIGNED max value")
void shouldReturnMySQLBigIntUnsignedMaxValue() {
assertEquals("18446744073709551615", provider.getMaxLimitValue());
}
@Test
- @Story("Not support RETURNING clause")
@DisplayName("Should not support RETURNING clause")
void shouldNotSupportReturningClause() {
assertFalse(provider.supportsReturningClause());
}
@Test
- @Story("Throw exception when building RETURNING clause")
@DisplayName("Should throw exception when building RETURNING clause")
void shouldThrowExceptionWhenBuildingReturningClause() {
UnsupportedOperationException exception = assertThrows(
@@ -293,7 +265,6 @@ class MySQLDialectProviderTest {
class SchemaDDLTests {
@Test
- @Story("Return AUTO_INCREMENT definition")
@DisplayName("Should return AUTO_INCREMENT definition")
void shouldReturnAutoIncrementDefinition() {
String result = provider.getAutoIncrementDefinition();
@@ -301,11 +272,10 @@ class MySQLDialectProviderTest {
}
@Test
- @Story("Return TIMESTAMP with ON UPDATE definition")
@DisplayName("Should return TIMESTAMP with ON UPDATE definition")
void shouldReturnTimestampWithOnUpdateDefinition() {
String result = provider.getTimestampDefinition();
assertEquals("TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP", result);
}
}
-}
+}
\ No newline at end of file
diff --git a/src/test/java/de/avatic/lcc/e2e/tests/CalculationWorkflowE2ETest.java b/src/test/java/de/avatic/lcc/e2e/tests/CalculationWorkflowE2ETest.java
index 32f839d..758f172 100644
--- a/src/test/java/de/avatic/lcc/e2e/tests/CalculationWorkflowE2ETest.java
+++ b/src/test/java/de/avatic/lcc/e2e/tests/CalculationWorkflowE2ETest.java
@@ -8,9 +8,6 @@ import de.avatic.lcc.e2e.pages.ResultsPage;
import de.avatic.lcc.e2e.testdata.DestinationInput;
import de.avatic.lcc.e2e.testdata.TestCase;
import de.avatic.lcc.e2e.testdata.TestCases;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
@@ -28,8 +25,6 @@ import java.util.stream.Stream;
* Run with: {@code mvn test -Dtest=CalculationWorkflowE2ETest -Dgroups=e2e -Dspring.profiles.active=test,dev,mysql}
*/
@DisplayName("Calculation Workflow E2E Tests")
-@Epic("End-to-End")
-@Feature("Calculation Workflow")
class CalculationWorkflowE2ETest extends AbstractE2ETest {
private static final Logger logger = Logger.getLogger(CalculationWorkflowE2ETest.class.getName());
@@ -40,7 +35,6 @@ class CalculationWorkflowE2ETest extends AbstractE2ETest {
@ParameterizedTest(name = "Testfall {0}: {1}")
@MethodSource("provideTestCases")
- @Story("Calculation workflow")
@DisplayName("Calculation workflow")
void testCalculationWorkflow(String id, String name, TestCase testCase) {
logger.info(() -> "Starting test case: " + id + " - " + name);
diff --git a/src/test/java/de/avatic/lcc/e2e/tests/DeviationAnalysisE2ETest.java b/src/test/java/de/avatic/lcc/e2e/tests/DeviationAnalysisE2ETest.java
index 84e68ff..f2bc4bc 100644
--- a/src/test/java/de/avatic/lcc/e2e/tests/DeviationAnalysisE2ETest.java
+++ b/src/test/java/de/avatic/lcc/e2e/tests/DeviationAnalysisE2ETest.java
@@ -8,9 +8,6 @@ import de.avatic.lcc.e2e.testdata.DestinationInput;
import de.avatic.lcc.e2e.testdata.TestCase;
import de.avatic.lcc.e2e.testdata.TestCases;
import de.avatic.lcc.e2e.util.DeviationReport;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
@@ -27,8 +24,6 @@ import java.util.logging.Logger;
*/
@DisplayName("Deviation Analysis E2E Test")
@Tag("analysis")
-@Epic("End-to-End")
-@Feature("Deviation Analysis")
class DeviationAnalysisE2ETest extends AbstractE2ETest {
private static final Logger logger = Logger.getLogger(DeviationAnalysisE2ETest.class.getName());
@@ -36,7 +31,6 @@ class DeviationAnalysisE2ETest extends AbstractE2ETest {
private static final int POLL_INTERVAL_MS = 2000;
@Test
- @Story("Analyze deviations across all test cases")
@DisplayName("Analyze deviations across all test cases")
void analyzeDeviations() {
DeviationReport report = new DeviationReport();
diff --git a/src/test/java/de/avatic/lcc/e2e/tests/SmokeE2ETest.java b/src/test/java/de/avatic/lcc/e2e/tests/SmokeE2ETest.java
index 51a98f6..15a02a0 100644
--- a/src/test/java/de/avatic/lcc/e2e/tests/SmokeE2ETest.java
+++ b/src/test/java/de/avatic/lcc/e2e/tests/SmokeE2ETest.java
@@ -1,9 +1,6 @@
package de.avatic.lcc.e2e.tests;
import de.avatic.lcc.e2e.pages.AssistantPage;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
@@ -22,14 +19,11 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
*/
@Tag("smoke")
@DisplayName("Smoke E2E Tests")
-@Epic("End-to-End")
-@Feature("Smoke Tests")
class SmokeE2ETest extends AbstractE2ETest {
private static final Logger logger = Logger.getLogger(SmokeE2ETest.class.getName());
@Test
- @Story("Application is accessible")
@DisplayName("Application is accessible")
void testApplicationIsAccessible() {
page.navigate(getBaseUrl());
@@ -40,7 +34,6 @@ class SmokeE2ETest extends AbstractE2ETest {
}
@Test
- @Story("Login was successful")
@DisplayName("Login was successful")
void testLoginWasSuccessful() {
// Login happens in @BeforeEach via AbstractE2ETest
@@ -50,7 +43,6 @@ class SmokeE2ETest extends AbstractE2ETest {
}
@Test
- @Story("Navigate to assistant page")
@DisplayName("Navigate to assistant page")
void testNavigateToAssistant() {
// Navigate to assistant
@@ -62,7 +54,6 @@ class SmokeE2ETest extends AbstractE2ETest {
}
@Test
- @Story("Part number search is functional")
@DisplayName("Part number search is functional")
void testPartNumberSearchFunctional() {
// Navigate to assistant
@@ -85,7 +76,6 @@ class SmokeE2ETest extends AbstractE2ETest {
}
@Test
- @Story("Test materials exist in database")
@DisplayName("Test materials exist in database")
void testMaterialsExistInDatabase() {
// Check if our test materials are in the database
diff --git a/src/test/java/de/avatic/lcc/repositories/CountryRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/CountryRepositoryIntegrationTest.java
index 53138d1..ff6d406 100644
--- a/src/test/java/de/avatic/lcc/repositories/CountryRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/CountryRepositoryIntegrationTest.java
@@ -5,10 +5,6 @@ import de.avatic.lcc.model.db.country.IsoCode;
import de.avatic.lcc.repositories.country.CountryRepository;
import de.avatic.lcc.repositories.pagination.SearchQueryPagination;
import de.avatic.lcc.repositories.pagination.SearchQueryResult;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -34,16 +30,12 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=CountryRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Master Data")
class CountryRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
private CountryRepository countryRepository;
@Test
- @Story("Get by id")
- @DisplayName("Get by id")
void testGetById() {
// Given: Country with id=1 should exist (from Flyway migrations)
Integer countryId = 1;
@@ -59,8 +51,6 @@ class CountryRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Get by id not found")
- @DisplayName("Get by id not found")
void testGetByIdNotFound() {
// Given: Non-existent country ID
Integer nonExistentId = 99999;
@@ -73,8 +63,6 @@ class CountryRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Get by iso code")
- @DisplayName("Get by iso code")
void testGetByIsoCode() {
// Given: Germany should exist (from Flyway migrations)
IsoCode isoCode = IsoCode.DE;
@@ -89,8 +77,6 @@ class CountryRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Get by iso code not found")
- @DisplayName("Get by iso code not found")
void testGetByIsoCodeNotFound() {
// Given: Invalid ISO code that shouldn't exist
// Note: This will throw IllegalArgumentException if the enum doesn't exist
@@ -105,8 +91,6 @@ class CountryRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("List all countries")
- @DisplayName("List all countries")
void testListAllCountries() {
// When: List all countries
List countries = countryRepository.listAllCountries();
@@ -125,8 +109,6 @@ class CountryRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("List countries with pagination")
- @DisplayName("List countries with pagination")
void testListCountriesWithPagination() {
// Given: Pagination settings (page 1, size 5)
SearchQueryPagination pagination = new SearchQueryPagination(1, 5);
@@ -144,8 +126,6 @@ class CountryRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("List countries with filter")
- @DisplayName("List countries with filter")
void testListCountriesWithFilter() {
// Given: Filter for "German" or "Deutschland"
String filter = "German";
@@ -169,8 +149,6 @@ class CountryRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("List countries with filter and pagination")
- @DisplayName("List countries with filter and pagination")
void testListCountriesWithFilterAndPagination() {
// Given: Filter + Pagination
String filter = "a"; // Should match many countries
@@ -194,8 +172,6 @@ class CountryRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Boolean literal compatibility")
- @DisplayName("Boolean literal compatibility")
void testBooleanLiteralCompatibility() {
// This test verifies that boolean literals work across MySQL (TRUE/FALSE) and MSSQL (1/0)
@@ -213,8 +189,6 @@ class CountryRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Get by iso codes")
- @DisplayName("Get by iso codes")
void testGetByIsoCodes() {
// Given: List of ISO codes
List isoCodes = List.of(IsoCode.DE, IsoCode.FR, IsoCode.US);
@@ -234,8 +208,6 @@ class CountryRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Get by iso codes empty list")
- @DisplayName("Get by iso codes empty list")
void testGetByIsoCodesEmptyList() {
// Given: Empty list
List emptyList = List.of();
diff --git a/src/test/java/de/avatic/lcc/repositories/DatabaseConfigurationSmokeTest.java b/src/test/java/de/avatic/lcc/repositories/DatabaseConfigurationSmokeTest.java
index 18ece36..1e73eda 100644
--- a/src/test/java/de/avatic/lcc/repositories/DatabaseConfigurationSmokeTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/DatabaseConfigurationSmokeTest.java
@@ -1,10 +1,6 @@
package de.avatic.lcc.repositories;
import de.avatic.lcc.database.dialect.SqlDialectProvider;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
@@ -26,8 +22,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=DatabaseConfigurationSmokeTest
*
*/
-@Epic("Repository")
-@Feature("Infrastructure")
class DatabaseConfigurationSmokeTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -37,8 +31,6 @@ class DatabaseConfigurationSmokeTest extends AbstractRepositoryIntegrationTest {
private SqlDialectProvider dialectProvider;
@Test
- @Story("Database connection is established")
- @DisplayName("Database connection is established")
void testDatabaseConnectionIsEstablished() {
// When: Query database
Integer result = jdbcTemplate.queryForObject("SELECT 1", Integer.class);
@@ -49,8 +41,6 @@ class DatabaseConfigurationSmokeTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Flyway migrations ran successfully")
- @DisplayName("Flyway migrations ran successfully")
void testFlywayMigrationsRanSuccessfully() {
// When: Check if core tables exist
Integer propertySetCount = jdbcTemplate.queryForObject(
@@ -61,8 +51,6 @@ class DatabaseConfigurationSmokeTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Countries were loaded from migrations")
- @DisplayName("Countries were loaded from migrations")
void testCountriesWereLoadedFromMigrations() {
// When: Count countries
Integer countryCount = jdbcTemplate.queryForObject(
@@ -75,8 +63,6 @@ class DatabaseConfigurationSmokeTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Nodes were loaded from migrations")
- @DisplayName("Nodes were loaded from migrations")
void testNodesWereLoadedFromMigrations() {
// When: Count nodes
Integer nodeCount = jdbcTemplate.queryForObject(
@@ -89,8 +75,6 @@ class DatabaseConfigurationSmokeTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Correct SQL dialect provider is loaded")
- @DisplayName("Correct SQL dialect provider is loaded")
void testCorrectSqlDialectProviderIsLoaded() {
// Debug: Print active profiles
String[] activeProfiles = jdbcTemplate.getDataSource() != null ?
@@ -113,8 +97,6 @@ class DatabaseConfigurationSmokeTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Boolean literal in query")
- @DisplayName("Boolean literal in query")
void testBooleanLiteralInQuery() {
// When: Query with boolean literal from dialect provider
String query = "SELECT COUNT(*) FROM node WHERE is_deprecated = " +
@@ -127,8 +109,6 @@ class DatabaseConfigurationSmokeTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Pagination query")
- @DisplayName("Pagination query")
void testPaginationQuery() {
// When: Execute query with pagination (requires ORDER BY in MSSQL)
String paginationClause = dialectProvider.buildPaginationClause(5, 0);
diff --git a/src/test/java/de/avatic/lcc/repositories/DistanceMatrixRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/DistanceMatrixRepositoryIntegrationTest.java
index d46e957..0a0e8bc 100644
--- a/src/test/java/de/avatic/lcc/repositories/DistanceMatrixRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/DistanceMatrixRepositoryIntegrationTest.java
@@ -3,11 +3,7 @@ package de.avatic.lcc.repositories;
import de.avatic.lcc.model.db.nodes.Distance;
import de.avatic.lcc.model.db.nodes.DistanceMatrixState;
import de.avatic.lcc.model.db.nodes.Node;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -33,8 +29,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=DistanceMatrixRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Master Data")
class DistanceMatrixRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -58,8 +52,6 @@ class DistanceMatrixRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get distance node to node")
- @DisplayName("Get distance node to node")
void testGetDistanceNodeToNode() {
// Given: Create distance entry
Distance distance = createTestDistance(testNodeId1, testNodeId2, null, null,
@@ -81,8 +73,6 @@ class DistanceMatrixRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get distance user node to user node")
- @DisplayName("Get distance user node to user node")
void testGetDistanceUserNodeToUserNode() {
// Given: Create user node distance entry
Distance distance = createTestDistance(null, null, testUserNodeId1, testUserNodeId2,
@@ -103,8 +93,6 @@ class DistanceMatrixRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get distance not found")
- @DisplayName("Get distance not found")
void testGetDistanceNotFound() {
// When: Get non-existent distance
Node from = createNodeObject(testNodeId1);
@@ -116,8 +104,6 @@ class DistanceMatrixRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Save distance insert")
- @DisplayName("Save distance insert")
void testSaveDistanceInsert() {
// Given: New distance
Distance distance = createTestDistance(testNodeId1, testNodeId2, null, null,
@@ -138,8 +124,6 @@ class DistanceMatrixRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Save distance update")
- @DisplayName("Save distance update")
void testSaveDistanceUpdate() {
// Given: Existing distance
Distance distance = createTestDistance(testNodeId1, testNodeId2, null, null,
@@ -164,8 +148,6 @@ class DistanceMatrixRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Update retries")
- @DisplayName("Update retries")
void testUpdateRetries() {
// Given: Insert distance
Distance distance = createTestDistance(testNodeId1, testNodeId2, null, null,
@@ -189,8 +171,6 @@ class DistanceMatrixRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Distance states")
- @DisplayName("Distance states")
void testDistanceStates() {
// Test different states
for (DistanceMatrixState state : new DistanceMatrixState[]{
@@ -219,8 +199,6 @@ class DistanceMatrixRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Mixed node types")
- @DisplayName("Mixed node types")
void testMixedNodeTypes() {
// Given: Distance from regular node to user node
Distance distance = createTestDistance(testNodeId1, null, null, testUserNodeId1,
@@ -243,8 +221,6 @@ class DistanceMatrixRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Timestamp handling")
- @DisplayName("Timestamp handling")
void testTimestampHandling() {
// Given: Create distance with timestamp
Distance distance = createTestDistance(testNodeId1, testNodeId2, null, null,
diff --git a/src/test/java/de/avatic/lcc/repositories/MaterialRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/MaterialRepositoryIntegrationTest.java
index e5fd750..350fdb2 100644
--- a/src/test/java/de/avatic/lcc/repositories/MaterialRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/MaterialRepositoryIntegrationTest.java
@@ -3,10 +3,6 @@ package de.avatic.lcc.repositories;
import de.avatic.lcc.model.db.materials.Material;
import de.avatic.lcc.repositories.pagination.SearchQueryPagination;
import de.avatic.lcc.repositories.pagination.SearchQueryResult;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -31,16 +27,12 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=MaterialRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Master Data")
class MaterialRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
private MaterialRepository materialRepository;
@Test
- @Story("Insert and retrieve")
- @DisplayName("Insert and retrieve")
void testInsertAndRetrieve() {
// Given: Create material
Material material = createTestMaterial("TEST-001", "Test Material 1");
@@ -59,8 +51,6 @@ class MaterialRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Update")
- @DisplayName("Update")
void testUpdate() {
// Given: Insert material
Material material = createTestMaterial("TEST-002", "Original Name");
@@ -79,8 +69,6 @@ class MaterialRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Update by part number")
- @DisplayName("Update by part number")
void testUpdateByPartNumber() {
// Given: Insert material
Material material = createTestMaterial("TEST-003", "Original Name");
@@ -97,8 +85,6 @@ class MaterialRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Set deprecated by id")
- @DisplayName("Set deprecated by id")
void testSetDeprecatedById() {
// Given: Insert material
Material material = createTestMaterial("TEST-004", "Material to Deprecate");
@@ -122,8 +108,6 @@ class MaterialRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Delete by id")
- @DisplayName("Delete by id")
void testDeleteById() {
// Given: Insert material
Material material = createTestMaterial("TEST-005", "Material to Delete");
@@ -143,8 +127,6 @@ class MaterialRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("List materials with pagination")
- @DisplayName("List materials with pagination")
void testListMaterialsWithPagination() {
// Given: Insert multiple materials
for (int i = 1; i <= 5; i++) {
@@ -166,8 +148,6 @@ class MaterialRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("List materials with filter")
- @DisplayName("List materials with filter")
void testListMaterialsWithFilter() {
// Given: Insert materials with different names
Material material1 = createTestMaterial("FILTER-001", "Special Widget");
@@ -197,8 +177,6 @@ class MaterialRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("List materials exclude deprecated")
- @DisplayName("List materials exclude deprecated")
void testListMaterialsExcludeDeprecated() {
// Given: Insert deprecated and active materials
Material deprecated = createTestMaterial("DEPR-001", "Deprecated Material");
@@ -222,8 +200,6 @@ class MaterialRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("List all materials")
- @DisplayName("List all materials")
void testListAllMaterials() {
// Given: Insert materials
Material material1 = createTestMaterial("ALL-001", "Material 1");
@@ -249,8 +225,6 @@ class MaterialRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Get by part number")
- @DisplayName("Get by part number")
void testGetByPartNumber() {
// Given: Insert material
Material material = createTestMaterial("BYPART-001", "Get By Part");
@@ -266,8 +240,6 @@ class MaterialRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Get by part number not found")
- @DisplayName("Get by part number not found")
void testGetByPartNumberNotFound() {
// When: Get by non-existent part number
Optional result = materialRepository.getByPartNumber("NONEXISTENT-999");
@@ -277,8 +249,6 @@ class MaterialRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Get by part numbers")
- @DisplayName("Get by part numbers")
void testGetByPartNumbers() {
// Given: Insert multiple materials
Material material1 = createTestMaterial("BULK-001", "Bulk Material 1");
@@ -306,8 +276,6 @@ class MaterialRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Get by part numbers empty list")
- @DisplayName("Get by part numbers empty list")
void testGetByPartNumbersEmptyList() {
// When: Get by empty list
List materials = materialRepository.getByPartNumbers(List.of());
@@ -318,8 +286,6 @@ class MaterialRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Delete by ids")
- @DisplayName("Delete by ids")
void testDeleteByIds() {
// Given: Insert multiple materials
Material material1 = createTestMaterial("DELETE-001", "To Delete 1");
@@ -343,8 +309,6 @@ class MaterialRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Find missing ids")
- @DisplayName("Find missing ids")
void testFindMissingIds() {
// Given: Insert some materials
Material material1 = createTestMaterial("MISSING-001", "Material 1");
@@ -364,8 +328,6 @@ class MaterialRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Find missing ids empty list")
- @DisplayName("Find missing ids empty list")
void testFindMissingIdsEmptyList() {
// When: Check empty list
List missingIds = materialRepository.findMissingIds(List.of());
diff --git a/src/test/java/de/avatic/lcc/repositories/NodeRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/NodeRepositoryIntegrationTest.java
index b908e0b..472b02b 100644
--- a/src/test/java/de/avatic/lcc/repositories/NodeRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/NodeRepositoryIntegrationTest.java
@@ -4,10 +4,6 @@ import de.avatic.lcc.dto.generic.NodeType;
import de.avatic.lcc.repositories.pagination.SearchQueryPagination;
import de.avatic.lcc.repositories.pagination.SearchQueryResult;
import de.avatic.lcc.model.db.nodes.Node;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -32,16 +28,12 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=NodeRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Master Data")
class NodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
private NodeRepository nodeRepository;
@Test
- @Story("Insert and retrieve node")
- @DisplayName("Insert and retrieve node")
void testInsertAndRetrieveNode() {
// Given
Node node = new Node();
@@ -66,8 +58,6 @@ class NodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Update node")
- @DisplayName("Update node")
void testUpdateNode() {
// Given: Create a node first
Node node = createTestNode("Original Name", "Original Address", "50.0", "10.0");
@@ -86,8 +76,6 @@ class NodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Deprecate node")
- @DisplayName("Deprecate node")
void testDeprecateNode() {
// Given: Create a node
Node node = createTestNode("Node to Deprecate", "Address", "50.0", "10.0");
@@ -102,8 +90,6 @@ class NodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("List nodes with pagination")
- @DisplayName("List nodes with pagination")
void testListNodesWithPagination() {
// Given: Create multiple nodes
for (int i = 1; i <= 5; i++) {
@@ -122,8 +108,6 @@ class NodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Search node with filter")
- @DisplayName("Search node with filter")
void testSearchNodeWithFilter() {
// Given: Create nodes with different names
Node node1 = createTestNode("Berlin Node Test", "Berlin Street 1", "52.5200", "13.4050");
@@ -143,8 +127,6 @@ class NodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get by distance with haversine formula")
- @DisplayName("Get by distance with haversine formula")
void testGetByDistanceWithHaversineFormula() {
// Given: Create a reference node (Berlin)
Node referenceNode = createTestNode("Berlin Distance Test", "Berlin Center", "52.5200", "13.4050");
@@ -173,8 +155,6 @@ class NodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get by distance excluding reference node")
- @DisplayName("Get by distance excluding reference node")
void testGetByDistanceExcludingReferenceNode() {
// Given: Create reference node
Node referenceNode = createTestNode("Reference Node Distance", "Ref Address", "50.0", "10.0");
@@ -195,8 +175,6 @@ class NodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Boolean literal compatibility")
- @DisplayName("Boolean literal compatibility")
void testBooleanLiteralCompatibility() {
// Given: Create deprecated and non-deprecated nodes
Node deprecatedNode = createTestNode("Deprecated Boolean Test", "Addr1", "50.0", "10.0");
diff --git a/src/test/java/de/avatic/lcc/repositories/NomenclatureRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/NomenclatureRepositoryIntegrationTest.java
index 9845b9f..ad5ac1f 100644
--- a/src/test/java/de/avatic/lcc/repositories/NomenclatureRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/NomenclatureRepositoryIntegrationTest.java
@@ -1,10 +1,6 @@
package de.avatic.lcc.repositories;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -26,8 +22,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=NomenclatureRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Master Data")
class NomenclatureRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -54,8 +48,6 @@ class NomenclatureRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Search HS code with exact match")
- @DisplayName("Search HS code with exact match")
void testSearchHsCodeWithExactMatch() {
// Given: Search for exact HS code prefix
String search = "847130";
@@ -71,8 +63,6 @@ class NomenclatureRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Search HS code with partial match")
- @DisplayName("Search HS code with partial match")
void testSearchHsCodeWithPartialMatch() {
// Given: Search for partial HS code
String search = "8471";
@@ -92,8 +82,6 @@ class NomenclatureRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Search HS code ordering")
- @DisplayName("Search HS code ordering")
void testSearchHsCodeOrdering() {
// Given: Search for codes
String search = "8471";
@@ -113,8 +101,6 @@ class NomenclatureRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Search HS code with pagination")
- @DisplayName("Search HS code with pagination")
void testSearchHsCodeWithPagination() {
// Given: Search that returns many results
String search = "8471";
@@ -128,8 +114,6 @@ class NomenclatureRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Search HS code not found")
- @DisplayName("Search HS code not found")
void testSearchHsCodeNotFound() {
// Given: Search for non-existent HS code
String search = "9999";
@@ -143,8 +127,6 @@ class NomenclatureRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Search HS code different prefix")
- @DisplayName("Search HS code different prefix")
void testSearchHsCodeDifferentPrefix() {
// Given: Search for different category (furniture)
String search = "9403";
@@ -160,8 +142,6 @@ class NomenclatureRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Search HS code concat function")
- @DisplayName("Search HS code concat function")
void testSearchHsCodeConcatFunction() {
// This test verifies that the CONCAT function works across both databases
// MySQL: CONCAT(?, '%')
diff --git a/src/test/java/de/avatic/lcc/repositories/PackagingDimensionRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/PackagingDimensionRepositoryIntegrationTest.java
index 93902ea..2f08e41 100644
--- a/src/test/java/de/avatic/lcc/repositories/PackagingDimensionRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/PackagingDimensionRepositoryIntegrationTest.java
@@ -5,10 +5,6 @@ import de.avatic.lcc.model.db.packaging.PackagingType;
import de.avatic.lcc.model.db.utils.DimensionUnit;
import de.avatic.lcc.model.db.utils.WeightUnit;
import de.avatic.lcc.repositories.packaging.PackagingDimensionRepository;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -30,16 +26,12 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=PackagingDimensionRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Master Data")
class PackagingDimensionRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
private PackagingDimensionRepository packagingDimensionRepository;
@Test
- @Story("Insert and retrieve")
- @DisplayName("Insert and retrieve")
void testInsertAndRetrieve() {
// Given: Create packaging dimension
PackagingDimension dimension = createTestDimension(1000, 500, 300, 10000, 1);
@@ -68,8 +60,6 @@ class PackagingDimensionRepositoryIntegrationTest extends AbstractRepositoryInte
}
@Test
- @Story("Update")
- @DisplayName("Update")
void testUpdate() {
// Given: Insert dimension
PackagingDimension dimension = createTestDimension(1000, 500, 300, 10000, 1);
@@ -94,8 +84,6 @@ class PackagingDimensionRepositoryIntegrationTest extends AbstractRepositoryInte
}
@Test
- @Story("Set deprecated by id")
- @DisplayName("Set deprecated by id")
void testSetDeprecatedById() {
// Given: Insert dimension
PackagingDimension dimension = createTestDimension(1000, 500, 300, 10000, 1);
@@ -113,8 +101,6 @@ class PackagingDimensionRepositoryIntegrationTest extends AbstractRepositoryInte
}
@Test
- @Story("Get by id not found")
- @DisplayName("Get by id not found")
void testGetByIdNotFound() {
// When: Get by non-existent ID
Optional result = packagingDimensionRepository.getById(99999);
@@ -124,8 +110,6 @@ class PackagingDimensionRepositoryIntegrationTest extends AbstractRepositoryInte
}
@Test
- @Story("Different packaging types")
- @DisplayName("Different packaging types")
void testDifferentPackagingTypes() {
// Given: Insert dimensions with different types
PackagingDimension hu = createTestDimension(1000, 500, 300, 10000, 1);
@@ -146,8 +130,6 @@ class PackagingDimensionRepositoryIntegrationTest extends AbstractRepositoryInte
}
@Test
- @Story("Different units")
- @DisplayName("Different units")
void testDifferentUnits() {
// Given: Insert dimension with different units (meters and grams instead of cm and kg)
PackagingDimension dimension = createTestDimension(1, 1, 1, 1000, 1); // meters and grams
@@ -168,8 +150,6 @@ class PackagingDimensionRepositoryIntegrationTest extends AbstractRepositoryInte
}
@Test
- @Story("Update with deprecation")
- @DisplayName("Update with deprecation")
void testUpdateWithDeprecation() {
// Given: Insert dimension
PackagingDimension dimension = createTestDimension(1000, 500, 300, 10000, 1);
diff --git a/src/test/java/de/avatic/lcc/repositories/PackagingRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/PackagingRepositoryIntegrationTest.java
index 0530d38..59bca4f 100644
--- a/src/test/java/de/avatic/lcc/repositories/PackagingRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/PackagingRepositoryIntegrationTest.java
@@ -4,11 +4,7 @@ import de.avatic.lcc.model.db.packaging.Packaging;
import de.avatic.lcc.repositories.packaging.PackagingRepository;
import de.avatic.lcc.repositories.pagination.SearchQueryPagination;
import de.avatic.lcc.repositories.pagination.SearchQueryResult;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -32,8 +28,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=PackagingRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Master Data")
class PackagingRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -63,8 +57,6 @@ class PackagingRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Insert and retrieve")
- @DisplayName("Insert and retrieve")
void testInsertAndRetrieve() {
// Given: Create packaging
Packaging packaging = new Packaging();
@@ -94,8 +86,6 @@ class PackagingRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Update")
- @DisplayName("Update")
void testUpdate() {
// Given: Create and insert packaging
Packaging packaging = createTestPackaging(testMaterialId1, testNodeId1, testDimensionId1, testDimensionId1, false);
@@ -114,8 +104,6 @@ class PackagingRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Set deprecated by id")
- @DisplayName("Set deprecated by id")
void testSetDeprecatedById() {
// Given: Create packaging
Packaging packaging = createTestPackaging(testMaterialId1, testNodeId1, testDimensionId1, testDimensionId1, false);
@@ -131,8 +119,6 @@ class PackagingRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("List packaging with pagination")
- @DisplayName("List packaging with pagination")
void testListPackagingWithPagination() {
// Given: Create multiple packagings
for (int i = 0; i < 5; i++) {
@@ -153,8 +139,6 @@ class PackagingRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("List packaging filter by material id")
- @DisplayName("List packaging filter by material id")
void testListPackagingFilterByMaterialId() {
// Given: Create packagings with different materials
Packaging packaging1 = createTestPackaging(testMaterialId1, testNodeId1, testDimensionId1, testDimensionId1, false);
@@ -177,8 +161,6 @@ class PackagingRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("List packaging filter by supplier id")
- @DisplayName("List packaging filter by supplier id")
void testListPackagingFilterBySupplierId() {
// Given: Create packagings with different suppliers
Packaging packaging1 = createTestPackaging(testMaterialId1, testNodeId1, testDimensionId1, testDimensionId1, false);
@@ -201,8 +183,6 @@ class PackagingRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("List packaging exclude deprecated")
- @DisplayName("List packaging exclude deprecated")
void testListPackagingExcludeDeprecated() {
// Given: Create deprecated and non-deprecated packagings
Packaging deprecated = createTestPackaging(testMaterialId1, testNodeId1, testDimensionId1, testDimensionId1, true);
@@ -225,8 +205,6 @@ class PackagingRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Get by material id")
- @DisplayName("Get by material id")
void testGetByMaterialId() {
// Given: Create packagings for specific material
Packaging packaging1 = createTestPackaging(testMaterialId1, testNodeId1, testDimensionId1, testDimensionId1, false);
@@ -247,8 +225,6 @@ class PackagingRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Get by material id and supplier id")
- @DisplayName("Get by material id and supplier id")
void testGetByMaterialIdAndSupplierId() {
// Given: Create packaging with specific material and supplier
Packaging packaging = createTestPackaging(testMaterialId1, testNodeId1, testDimensionId1, testDimensionId1, false);
@@ -265,8 +241,6 @@ class PackagingRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Get by material id and supplier id not found")
- @DisplayName("Get by material id and supplier id not found")
void testGetByMaterialIdAndSupplierIdNotFound() {
// When: Get by non-existent combination
Optional result = packagingRepository.getByMaterialIdAndSupplierId(99999, 99999);
@@ -276,8 +250,6 @@ class PackagingRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("List all packaging")
- @DisplayName("List all packaging")
void testListAllPackaging() {
// Given: Create packagings
Packaging packaging1 = createTestPackaging(testMaterialId1, testNodeId1, testDimensionId1, testDimensionId1, false);
diff --git a/src/test/java/de/avatic/lcc/repositories/bulk/BulkOperationRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/bulk/BulkOperationRepositoryIntegrationTest.java
index 465d1d9..c1df854 100644
--- a/src/test/java/de/avatic/lcc/repositories/bulk/BulkOperationRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/bulk/BulkOperationRepositoryIntegrationTest.java
@@ -5,11 +5,7 @@ import de.avatic.lcc.dto.bulk.BulkOperationState;
import de.avatic.lcc.dto.bulk.BulkProcessingType;
import de.avatic.lcc.model.bulk.BulkOperation;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -35,8 +31,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=BulkOperationRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Bulk")
class BulkOperationRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -79,8 +73,6 @@ class BulkOperationRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Insert new operation")
- @DisplayName("Insert new operation")
void testInsertNewOperation() {
// Given: New bulk operation
BulkOperation newOp = new BulkOperation();
@@ -106,8 +98,6 @@ class BulkOperationRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Insert with null validity period")
- @DisplayName("Insert with null validity period")
void testInsertWithNullValidityPeriod() {
// Given: Operation without validity period
BulkOperation newOp = new BulkOperation();
@@ -128,8 +118,6 @@ class BulkOperationRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Remove old keeps newest")
- @DisplayName("Remove old keeps newest")
void testRemoveOldKeepsNewest() {
// Given: Create 15 operations for user1 (all COMPLETED)
for (int i = 0; i < 15; i++) {
@@ -152,8 +140,6 @@ class BulkOperationRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Remove old preserves scheduled and processing")
- @DisplayName("Remove old preserves scheduled and processing")
void testRemoveOldPreservesScheduledAndProcessing() {
// Given: Create 5 SCHEDULED/PROCESSING and 12 COMPLETED operations
createBulkOperation(testUserId1, BulkFileType.MATERIAL, BulkOperationState.SCHEDULED, null, "sched1".getBytes());
@@ -174,8 +160,6 @@ class BulkOperationRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Update state")
- @DisplayName("Update state")
void testUpdateState() {
// Given: Existing operation
Integer opId = createBulkOperation(testUserId1, BulkFileType.MATERIAL,
@@ -191,8 +175,6 @@ class BulkOperationRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("List by user id")
- @DisplayName("List by user id")
void testListByUserId() {
// When: List operations for user1
List operations = bulkOperationRepository.listByUserId(testUserId1);
@@ -204,8 +186,6 @@ class BulkOperationRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("List by user id limit")
- @DisplayName("List by user id limit")
void testListByUserIdLimit() {
// Given: Create 15 operations
for (int i = 0; i < 15; i++) {
@@ -221,8 +201,6 @@ class BulkOperationRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("List by user id skips file")
- @DisplayName("List by user id skips file")
void testListByUserIdSkipsFile() {
// When: List operations
List operations = bulkOperationRepository.listByUserId(testUserId1);
@@ -233,8 +211,6 @@ class BulkOperationRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Get operation by id")
- @DisplayName("Get operation by id")
void testGetOperationById() {
// Given: Existing operation
Integer opId = createBulkOperation(testUserId1, BulkFileType.MATERIAL,
@@ -255,8 +231,6 @@ class BulkOperationRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Get operation by id not found")
- @DisplayName("Get operation by id not found")
void testGetOperationByIdNotFound() {
// When: Get non-existent ID
Optional operation = bulkOperationRepository.getOperationById(99999);
@@ -266,8 +240,6 @@ class BulkOperationRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Update")
- @DisplayName("Update")
void testUpdate() {
// Given: Existing operation
Integer opId = createBulkOperation(testUserId1, BulkFileType.MATERIAL,
@@ -295,8 +267,6 @@ class BulkOperationRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Cleanup timeouts via list by user id")
- @DisplayName("Cleanup timeouts via list by user id")
void testCleanupTimeoutsViaListByUserId() {
// Given: Create old PROCESSING operation (simulate timeout)
Integer oldOpId = createBulkOperation(testUserId1, BulkFileType.MATERIAL,
@@ -318,8 +288,6 @@ class BulkOperationRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Cleanup timeouts does not affect recent")
- @DisplayName("Cleanup timeouts does not affect recent")
void testCleanupTimeoutsDoesNotAffectRecent() {
// Given: Recent PROCESSING operation
Integer recentOpId = createBulkOperation(testUserId1, BulkFileType.MATERIAL,
@@ -335,8 +303,6 @@ class BulkOperationRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Remove old does not affect other users")
- @DisplayName("Remove old does not affect other users")
void testRemoveOldDoesNotAffectOtherUsers() {
// Given: Create 15 operations for user2
for (int i = 0; i < 15; i++) {
diff --git a/src/test/java/de/avatic/lcc/repositories/calculation/CalculationJobDestinationRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/calculation/CalculationJobDestinationRepositoryIntegrationTest.java
index ef704de..8571a4d 100644
--- a/src/test/java/de/avatic/lcc/repositories/calculation/CalculationJobDestinationRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/calculation/CalculationJobDestinationRepositoryIntegrationTest.java
@@ -6,11 +6,7 @@ import de.avatic.lcc.model.db.calculations.CalculationJobPriority;
import de.avatic.lcc.model.db.calculations.CalculationJobState;
import de.avatic.lcc.model.db.premises.PremiseState;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -35,8 +31,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=CalculationJobDestinationRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Calculation")
class CalculationJobDestinationRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -112,8 +106,6 @@ class CalculationJobDestinationRepositoryIntegrationTest extends AbstractReposit
}
@Test
- @Story("Insert and get by job id")
- @DisplayName("Insert and get by job id")
void testInsertAndGetByJobId() {
// Given: New calculation job destination
CalculationJobDestination destination = createFullCalculationJobDestination();
@@ -141,8 +133,6 @@ class CalculationJobDestinationRepositoryIntegrationTest extends AbstractReposit
}
@Test
- @Story("Get destinations by job id empty")
- @DisplayName("Get destinations by job id empty")
void testGetDestinationsByJobIdEmpty() {
// When: Get destinations for job with no destinations
List destinations =
@@ -154,8 +144,6 @@ class CalculationJobDestinationRepositoryIntegrationTest extends AbstractReposit
}
@Test
- @Story("Get destinations by job id multiple")
- @DisplayName("Get destinations by job id multiple")
void testGetDestinationsByJobIdMultiple() {
// Given: Multiple destinations for same job
CalculationJobDestination dest1 = createFullCalculationJobDestination();
@@ -180,8 +168,6 @@ class CalculationJobDestinationRepositoryIntegrationTest extends AbstractReposit
}
@Test
- @Story("Container type enum")
- @DisplayName("Container type enum")
void testContainerTypeEnum() {
// Given: Destinations with different container types
CalculationJobDestination dest1 = createFullCalculationJobDestination();
@@ -208,8 +194,6 @@ class CalculationJobDestinationRepositoryIntegrationTest extends AbstractReposit
}
@Test
- @Story("Boolean fields")
- @DisplayName("Boolean fields")
void testBooleanFields() {
// Given: Destination with specific boolean values
CalculationJobDestination destination = createFullCalculationJobDestination();
@@ -232,8 +216,6 @@ class CalculationJobDestinationRepositoryIntegrationTest extends AbstractReposit
}
@Test
- @Story("Big decimal fields")
- @DisplayName("Big decimal fields")
void testBigDecimalFields() {
// Given: Destination with specific decimal values
CalculationJobDestination destination = createFullCalculationJobDestination();
@@ -259,8 +241,6 @@ class CalculationJobDestinationRepositoryIntegrationTest extends AbstractReposit
}
@Test
- @Story("Nullable fields")
- @DisplayName("Nullable fields")
void testNullableFields() {
// Given: Destination with some nullable fields as null
CalculationJobDestination destination = createMinimalCalculationJobDestination();
diff --git a/src/test/java/de/avatic/lcc/repositories/calculation/CalculationJobRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/calculation/CalculationJobRepositoryIntegrationTest.java
index c6c9b97..adcd7d3 100644
--- a/src/test/java/de/avatic/lcc/repositories/calculation/CalculationJobRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/calculation/CalculationJobRepositoryIntegrationTest.java
@@ -4,11 +4,7 @@ import de.avatic.lcc.model.db.calculations.CalculationJob;
import de.avatic.lcc.model.db.calculations.CalculationJobPriority;
import de.avatic.lcc.model.db.calculations.CalculationJobState;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -35,8 +31,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=CalculationJobRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Calculation")
class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -91,8 +85,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Insert")
- @DisplayName("Insert")
void testInsert() {
// Given: New calculation job
CalculationJob newJob = new CalculationJob();
@@ -117,8 +109,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Fetch and lock next job priority")
- @DisplayName("Fetch and lock next job priority")
void testFetchAndLockNextJobPriority() {
// Given: Jobs with different priorities
createCalculationJob(testPremiseId, testValidityPeriodId, testPropertySetId, testUserId,
@@ -136,8 +126,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Fetch and lock next job exception")
- @DisplayName("Fetch and lock next job exception")
void testFetchAndLockNextJobException() {
// Given: Clear existing jobs and create job in EXCEPTION state with retries < 3
jdbcTemplate.update("DELETE FROM calculation_job");
@@ -163,8 +151,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Fetch and lock next job skips max retries")
- @DisplayName("Fetch and lock next job skips max retries")
void testFetchAndLockNextJobSkipsMaxRetries() {
// Given: Job in EXCEPTION state with 3 retries (max reached)
createCalculationJob(testPremiseId, testValidityPeriodId, testPropertySetId, testUserId,
@@ -180,8 +166,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Fetch and lock next job empty")
- @DisplayName("Fetch and lock next job empty")
void testFetchAndLockNextJobEmpty() {
// Given: No available jobs (only VALID jobs exist)
jdbcTemplate.update("DELETE FROM calculation_job WHERE job_state = 'CREATED'");
@@ -194,8 +178,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Fetch and lock next job")
- @DisplayName("Fetch and lock next job")
void testFetchAndLockNextJob() {
// Given: Clear existing jobs and create multiple CREATED jobs
jdbcTemplate.update("DELETE FROM calculation_job");
@@ -222,8 +204,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Mark as valid")
- @DisplayName("Mark as valid")
void testMarkAsValid() {
// Given: Job in SCHEDULED state
Integer jobId = createCalculationJob(testPremiseId, testValidityPeriodId, testPropertySetId, testUserId,
@@ -239,8 +219,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Mark as exception")
- @DisplayName("Mark as exception")
void testMarkAsException() {
// Given: Job in SCHEDULED state
Integer jobId = createCalculationJob(testPremiseId, testValidityPeriodId, testPropertySetId, testUserId,
@@ -257,8 +235,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get calculation job")
- @DisplayName("Get calculation job")
void testGetCalculationJob() {
// Given: Existing job
Integer jobId = createCalculationJob(testPremiseId, testValidityPeriodId, testPropertySetId, testUserId,
@@ -274,8 +250,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get calculation job not found")
- @DisplayName("Get calculation job not found")
void testGetCalculationJobNotFound() {
// When: Get non-existent ID
Optional job = calculationJobRepository.getCalculationJob(99999);
@@ -285,8 +259,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Reschedule")
- @DisplayName("Reschedule")
void testReschedule() {
// Given: Job in EXCEPTION state
Integer jobId = createCalculationJob(testPremiseId, testValidityPeriodId, testPropertySetId, testUserId,
@@ -302,8 +274,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get calculation job with job state valid")
- @DisplayName("Get calculation job with job state valid")
void testGetCalculationJobWithJobStateValid() {
// Given: VALID job for specific combination
createCalculationJob(testPremiseId, testValidityPeriodId, testPropertySetId, testUserId,
@@ -319,8 +289,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Set state to")
- @DisplayName("Set state to")
void testSetStateTo() {
// Given: Job in CREATED state
Integer jobId = createCalculationJob(testPremiseId, testValidityPeriodId, testPropertySetId, testUserId,
@@ -336,8 +304,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Find job")
- @DisplayName("Find job")
void testFindJob() {
// When: Find job by premise, period, and set
Optional job = calculationJobRepository.findJob(
@@ -354,8 +320,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
// due to a bug in production code: enum has INVALIDATED but DB schema only allows INVALID
@Test
- @Story("Get last state for")
- @DisplayName("Get last state for")
void testGetLastStateFor() {
// Given: Multiple jobs for premise with different dates
createCalculationJob(testPremiseId, testValidityPeriodId, testPropertySetId, testUserId,
@@ -374,8 +338,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get failed job by user id")
- @DisplayName("Get failed job by user id")
void testGetFailedJobByUserId() {
// Given: Recent EXCEPTION job (within 3 days)
createCalculationJob(testPremiseId, testValidityPeriodId, testPropertySetId, testUserId,
@@ -390,8 +352,6 @@ class CalculationJobRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get self scheduled job count by user id")
- @DisplayName("Get self scheduled job count by user id")
void testGetSelfScheduledJobCountByUserId() {
// Given: CREATED and SCHEDULED jobs
createCalculationJob(testPremiseId, testValidityPeriodId, testPropertySetId, testUserId,
diff --git a/src/test/java/de/avatic/lcc/repositories/calculation/CalculationJobRouteSectionRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/calculation/CalculationJobRouteSectionRepositoryIntegrationTest.java
index ac9782f..12e3313 100644
--- a/src/test/java/de/avatic/lcc/repositories/calculation/CalculationJobRouteSectionRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/calculation/CalculationJobRouteSectionRepositoryIntegrationTest.java
@@ -8,11 +8,7 @@ import de.avatic.lcc.model.db.calculations.CalculationJobRouteSection;
import de.avatic.lcc.model.db.calculations.CalculationJobState;
import de.avatic.lcc.model.db.premises.PremiseState;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -22,8 +18,6 @@ import java.util.Map;
import static org.junit.jupiter.api.Assertions.*;
-@Epic("Repository")
-@Feature("Calculation")
public class CalculationJobRouteSectionRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -115,8 +109,6 @@ public class CalculationJobRouteSectionRepositoryIntegrationTest extends Abstrac
// ========== INSERT TESTS ==========
@Test
- @Story("Insert with all fields")
- @DisplayName("Insert with all fields")
void testInsertWithAllFields() {
CalculationJobRouteSection section = createFullRouteSection();
section.setCalculationJobDestinationId(testCalculationJobDestinationId1);
@@ -152,8 +144,6 @@ public class CalculationJobRouteSectionRepositoryIntegrationTest extends Abstrac
}
@Test
- @Story("Insert with null premise route section id")
- @DisplayName("Insert with null premise route section id")
void testInsertWithNullPremiseRouteSectionId() {
CalculationJobRouteSection section = createFullRouteSection();
section.setCalculationJobDestinationId(testCalculationJobDestinationId1);
@@ -170,8 +160,6 @@ public class CalculationJobRouteSectionRepositoryIntegrationTest extends Abstrac
}
@Test
- @Story("Insert with matrix rate type")
- @DisplayName("Insert with matrix rate type")
void testInsertWithMatrixRateType() {
CalculationJobRouteSection section = createMinimalRouteSection();
section.setCalculationJobDestinationId(testCalculationJobDestinationId1);
@@ -190,8 +178,6 @@ public class CalculationJobRouteSectionRepositoryIntegrationTest extends Abstrac
}
@Test
- @Story("Insert with D2D rate type")
- @DisplayName("Insert with D2D rate type")
void testInsertWithD2DRateType() {
CalculationJobRouteSection section = createMinimalRouteSection();
section.setCalculationJobDestinationId(testCalculationJobDestinationId1);
@@ -210,8 +196,6 @@ public class CalculationJobRouteSectionRepositoryIntegrationTest extends Abstrac
}
@Test
- @Story("Insert with container rate type")
- @DisplayName("Insert with container rate type")
void testInsertWithContainerRateType() {
CalculationJobRouteSection section = createMinimalRouteSection();
section.setCalculationJobDestinationId(testCalculationJobDestinationId1);
@@ -230,8 +214,6 @@ public class CalculationJobRouteSectionRepositoryIntegrationTest extends Abstrac
}
@Test
- @Story("Boolean flags")
- @DisplayName("Boolean flags")
void testBooleanFlags() {
CalculationJobRouteSection section = createMinimalRouteSection();
section.setCalculationJobDestinationId(testCalculationJobDestinationId1);
@@ -262,8 +244,6 @@ public class CalculationJobRouteSectionRepositoryIntegrationTest extends Abstrac
// ========== QUERY TESTS ==========
@Test
- @Story("Get route sections by destination id")
- @DisplayName("Get route sections by destination id")
void testGetRouteSectionsByDestinationId() {
CalculationJobRouteSection section1 = createFullRouteSection();
section1.setCalculationJobDestinationId(testCalculationJobDestinationId1);
@@ -285,16 +265,12 @@ public class CalculationJobRouteSectionRepositoryIntegrationTest extends Abstrac
}
@Test
- @Story("Get route sections by destination id not found")
- @DisplayName("Get route sections by destination id not found")
void testGetRouteSectionsByDestinationIdNotFound() {
List sections = repository.getRouteSectionsByDestinationId(99999);
assertTrue(sections.isEmpty());
}
@Test
- @Story("Get route sections by destination ids")
- @DisplayName("Get route sections by destination ids")
void testGetRouteSectionsByDestinationIds() {
CalculationJobRouteSection section1 = createFullRouteSection();
section1.setCalculationJobDestinationId(testCalculationJobDestinationId1);
@@ -320,24 +296,18 @@ public class CalculationJobRouteSectionRepositoryIntegrationTest extends Abstrac
}
@Test
- @Story("Get route sections by destination ids empty")
- @DisplayName("Get route sections by destination ids empty")
void testGetRouteSectionsByDestinationIdsEmpty() {
Map> grouped = repository.getRouteSectionsByDestinationIds(List.of());
assertTrue(grouped.isEmpty());
}
@Test
- @Story("Get route sections by destination ids null")
- @DisplayName("Get route sections by destination ids null")
void testGetRouteSectionsByDestinationIdsNull() {
Map> grouped = repository.getRouteSectionsByDestinationIds(null);
assertTrue(grouped.isEmpty());
}
@Test
- @Story("Get route sections by destination ids not found")
- @DisplayName("Get route sections by destination ids not found")
void testGetRouteSectionsByDestinationIdsNotFound() {
Map> grouped = repository.getRouteSectionsByDestinationIds(
List.of(99998, 99999)
diff --git a/src/test/java/de/avatic/lcc/repositories/country/CountryPropertyRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/country/CountryPropertyRepositoryIntegrationTest.java
index 38572e5..16f92e8 100644
--- a/src/test/java/de/avatic/lcc/repositories/country/CountryPropertyRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/country/CountryPropertyRepositoryIntegrationTest.java
@@ -5,11 +5,7 @@ import de.avatic.lcc.model.db.properties.CountryPropertyMappingId;
import de.avatic.lcc.model.db.rates.ValidityPeriodState;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
import de.avatic.lcc.repositories.properties.PropertySetRepository;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -35,8 +31,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=CountryPropertyRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Country")
class CountryPropertyRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -76,8 +70,6 @@ class CountryPropertyRepositoryIntegrationTest extends AbstractRepositoryIntegra
}
@Test
- @Story("Set property upsert")
- @DisplayName("Set property upsert")
void testSetPropertyUpsert() {
// Given: Create a property in valid set first (required by setProperty logic)
String validValue = "30";
@@ -104,8 +96,6 @@ class CountryPropertyRepositoryIntegrationTest extends AbstractRepositoryIntegra
}
@Test
- @Story("Set property deletes when matches valid value")
- @DisplayName("Set property deletes when matches valid value")
void testSetPropertyDeletesWhenMatchesValidValue() {
// Given: Create valid property with value
String validValue = "30";
@@ -125,8 +115,6 @@ class CountryPropertyRepositoryIntegrationTest extends AbstractRepositoryIntegra
}
@Test
- @Story("Get by mapping id and country id")
- @DisplayName("Get by mapping id and country id")
void testGetByMappingIdAndCountryId() {
// Given: Create properties in draft and valid sets
createTestCountryProperty(testDraftSetId, testCountryId, testPropertyTypeId, "45");
@@ -144,8 +132,6 @@ class CountryPropertyRepositoryIntegrationTest extends AbstractRepositoryIntegra
}
@Test
- @Story("Get by mapping id and country id with set id")
- @DisplayName("Get by mapping id and country id with set id")
void testGetByMappingIdAndCountryIdWithSetId() {
// Given: Create property in specific set
createTestCountryProperty(testDraftSetId, testCountryId, testPropertyTypeId, "45");
@@ -160,8 +146,6 @@ class CountryPropertyRepositoryIntegrationTest extends AbstractRepositoryIntegra
}
@Test
- @Story("List properties by country id")
- @DisplayName("List properties by country id")
void testListPropertiesByCountryId() {
// Given: Create properties for country
createTestCountryProperty(testDraftSetId, testCountryId, testPropertyTypeId, "45");
@@ -184,8 +168,6 @@ class CountryPropertyRepositoryIntegrationTest extends AbstractRepositoryIntegra
}
@Test
- @Story("List properties by country id and property set id")
- @DisplayName("List properties by country id and property set id")
void testListPropertiesByCountryIdAndPropertySetId() {
// Given: Create properties in specific set
createTestCountryProperty(testDraftSetId, testCountryId, testPropertyTypeId, "45");
@@ -207,8 +189,6 @@ class CountryPropertyRepositoryIntegrationTest extends AbstractRepositoryIntegra
}
@Test
- @Story("Fill draft")
- @DisplayName("Fill draft")
void testFillDraft() {
// Given: Create properties in valid set for multiple property types
Integer propertyType2 = getPropertyTypeId(CountryPropertyMappingId.WAGE.name());
@@ -237,8 +217,6 @@ class CountryPropertyRepositoryIntegrationTest extends AbstractRepositoryIntegra
}
@Test
- @Story("Multiple countries")
- @DisplayName("Multiple countries")
void testMultipleCountries() {
// Given: Create properties for different countries
Integer country2 = 2; // Assuming country 2 exists from migrations
diff --git a/src/test/java/de/avatic/lcc/repositories/error/SysErrorRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/error/SysErrorRepositoryIntegrationTest.java
index 1a10100..b40edb2 100644
--- a/src/test/java/de/avatic/lcc/repositories/error/SysErrorRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/error/SysErrorRepositoryIntegrationTest.java
@@ -6,10 +6,6 @@ import de.avatic.lcc.model.db.error.SysErrorType;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
import de.avatic.lcc.repositories.pagination.SearchQueryPagination;
import de.avatic.lcc.repositories.pagination.SearchQueryResult;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -35,16 +31,12 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=SysErrorRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Error")
class SysErrorRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
private SysErrorRepository sysErrorRepository;
@Test
- @Story("Insert single")
- @DisplayName("Insert single")
void testInsertSingle() {
// Given: Create error
SysError error = createTestError("Test Error", "E001", "Test error message",
@@ -59,8 +51,6 @@ class SysErrorRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Insert with trace items")
- @DisplayName("Insert with trace items")
void testInsertWithTraceItems() {
// Given: Create error with trace items
SysError error = createTestError("Test Error", "E002", "Error with trace",
@@ -80,8 +70,6 @@ class SysErrorRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Insert multiple")
- @DisplayName("Insert multiple")
void testInsertMultiple() {
// Given: Multiple errors
List errors = new ArrayList<>();
@@ -96,8 +84,6 @@ class SysErrorRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("List errors with pagination")
- @DisplayName("List errors with pagination")
void testListErrorsWithPagination() {
// Given: Insert multiple errors
for (int i = 1; i <= 5; i++) {
@@ -117,8 +103,6 @@ class SysErrorRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("List errors with filter")
- @DisplayName("List errors with filter")
void testListErrorsWithFilter() {
// Given: Insert errors with different titles
SysError error1 = createTestError("Database Connection Error", "F001",
@@ -151,8 +135,6 @@ class SysErrorRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("List errors loads trace items")
- @DisplayName("List errors loads trace items")
void testListErrorsLoadsTraceItems() {
// Given: Insert error with trace
SysError error = createTestError("Error with Trace", "T001",
@@ -188,8 +170,6 @@ class SysErrorRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
// Skipping bulk operation tests - requires complex setup with proper bulk_operation table schema
@Test
- @Story("Get by bulk operation id not found")
- @DisplayName("Get by bulk operation id not found")
void testGetByBulkOperationIdNotFound() {
// When: Get by non-existent bulk operation ID
Optional result = sysErrorRepository.getByBulkOperationId(99999);
@@ -199,8 +179,6 @@ class SysErrorRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Error types")
- @DisplayName("Error types")
void testErrorTypes() {
// Test different error types
for (SysErrorType type : SysErrorType.values()) {
@@ -217,8 +195,6 @@ class SysErrorRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Reserved keyword handling")
- @DisplayName("Reserved keyword handling")
void testReservedKeywordHandling() {
// Test that "file" column (reserved keyword) is properly escaped
// Given: Error with trace (trace has "file" column)
diff --git a/src/test/java/de/avatic/lcc/repositories/packaging/PackagingPropertiesRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/packaging/PackagingPropertiesRepositoryIntegrationTest.java
index 887eb9d..e114a30 100644
--- a/src/test/java/de/avatic/lcc/repositories/packaging/PackagingPropertiesRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/packaging/PackagingPropertiesRepositoryIntegrationTest.java
@@ -4,11 +4,7 @@ import de.avatic.lcc.model.db.properties.PackagingProperty;
import de.avatic.lcc.model.db.properties.PropertyDataType;
import de.avatic.lcc.model.db.properties.PropertyType;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -31,8 +27,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=PackagingPropertiesRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Packaging")
class PackagingPropertiesRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -70,8 +64,6 @@ class PackagingPropertiesRepositoryIntegrationTest extends AbstractRepositoryInt
}
@Test
- @Story("Get by packaging id")
- @DisplayName("Get by packaging id")
void testGetByPackagingId() {
// When: Get properties by packaging ID
List properties = packagingPropertiesRepository.getByPackagingId(testPackagingId);
@@ -84,8 +76,6 @@ class PackagingPropertiesRepositoryIntegrationTest extends AbstractRepositoryInt
}
@Test
- @Story("Get by packaging id empty")
- @DisplayName("Get by packaging id empty")
void testGetByPackagingIdEmpty() {
// Given: Packaging with no properties
Integer emptyPackagingId = createPackaging("Box-002", "Empty Box");
@@ -99,8 +89,6 @@ class PackagingPropertiesRepositoryIntegrationTest extends AbstractRepositoryInt
}
@Test
- @Story("Get by packaging id and type")
- @DisplayName("Get by packaging id and type")
void testGetByPackagingIdAndType() {
// When: Get specific property by packaging and type
Optional property = packagingPropertiesRepository.getByPackagingIdAndType(
@@ -114,8 +102,6 @@ class PackagingPropertiesRepositoryIntegrationTest extends AbstractRepositoryInt
}
@Test
- @Story("Get by packaging id and type not found")
- @DisplayName("Get by packaging id and type not found")
void testGetByPackagingIdAndTypeNotFound() {
// When: Get non-existent property
Optional property = packagingPropertiesRepository.getByPackagingIdAndType(
@@ -126,8 +112,6 @@ class PackagingPropertiesRepositoryIntegrationTest extends AbstractRepositoryInt
}
@Test
- @Story("Get by packaging id and type different packaging")
- @DisplayName("Get by packaging id and type different packaging")
void testGetByPackagingIdAndTypeDifferentPackaging() {
// Given: Different packaging
Integer otherPackagingId = createPackaging("Box-003", "Other Box");
@@ -141,8 +125,6 @@ class PackagingPropertiesRepositoryIntegrationTest extends AbstractRepositoryInt
}
@Test
- @Story("List types")
- @DisplayName("List types")
void testListTypes() {
// When: List all property types
List types = packagingPropertiesRepository.listTypes();
@@ -156,8 +138,6 @@ class PackagingPropertiesRepositoryIntegrationTest extends AbstractRepositoryInt
}
@Test
- @Story("List types properties")
- @DisplayName("List types properties")
void testListTypesProperties() {
// When: List types
List types = packagingPropertiesRepository.listTypes();
@@ -175,8 +155,6 @@ class PackagingPropertiesRepositoryIntegrationTest extends AbstractRepositoryInt
}
@Test
- @Story("Update insert")
- @DisplayName("Update insert")
void testUpdateInsert() {
// Given: New property for Material
// When: Update (insert)
@@ -190,8 +168,6 @@ class PackagingPropertiesRepositoryIntegrationTest extends AbstractRepositoryInt
}
@Test
- @Story("Update upsert")
- @DisplayName("Update upsert")
void testUpdateUpsert() {
// Given: Existing Weight property with value "10.5"
// When: Update with new value
@@ -209,8 +185,6 @@ class PackagingPropertiesRepositoryIntegrationTest extends AbstractRepositoryInt
}
@Test
- @Story("Update with type id")
- @DisplayName("Update with type id")
void testUpdateWithTypeId() {
// When: Update using Integer type ID
packagingPropertiesRepository.update(testPackagingId, testTypeMaterialId, "Plastic");
@@ -223,8 +197,6 @@ class PackagingPropertiesRepositoryIntegrationTest extends AbstractRepositoryInt
}
@Test
- @Story("Update with type id string")
- @DisplayName("Update with type id string")
void testUpdateWithTypeIdString() {
// When: Update using String type ID
packagingPropertiesRepository.update(testPackagingId, String.valueOf(testTypeMaterialId), "Wood");
@@ -237,8 +209,6 @@ class PackagingPropertiesRepositoryIntegrationTest extends AbstractRepositoryInt
}
@Test
- @Story("Get type id by mapping id")
- @DisplayName("Get type id by mapping id")
void testGetTypeIdByMappingId() {
// When: Get type ID by mapping ID
Integer typeId = packagingPropertiesRepository.getTypeIdByMappingId("WEIGHT");
@@ -249,8 +219,6 @@ class PackagingPropertiesRepositoryIntegrationTest extends AbstractRepositoryInt
}
@Test
- @Story("Get type id by mapping id different types")
- @DisplayName("Get type id by mapping id different types")
void testGetTypeIdByMappingIdDifferentTypes() {
// When: Get different type IDs
Integer weightId = packagingPropertiesRepository.getTypeIdByMappingId("WEIGHT");
@@ -267,8 +235,6 @@ class PackagingPropertiesRepositoryIntegrationTest extends AbstractRepositoryInt
}
@Test
- @Story("Update multiple properties")
- @DisplayName("Update multiple properties")
void testUpdateMultipleProperties() {
// Given: Packaging with properties
// When: Update multiple properties
diff --git a/src/test/java/de/avatic/lcc/repositories/premise/DestinationRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/premise/DestinationRepositoryIntegrationTest.java
index 57f32e9..f2c9c3d 100644
--- a/src/test/java/de/avatic/lcc/repositories/premise/DestinationRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/premise/DestinationRepositoryIntegrationTest.java
@@ -5,11 +5,7 @@ import de.avatic.lcc.model.db.premises.route.Destination;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
import de.avatic.lcc.util.exception.base.ForbiddenException;
import de.avatic.lcc.util.exception.internalerror.DatabaseException;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -35,8 +31,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=DestinationRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Premise")
class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -95,8 +89,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get by id")
- @DisplayName("Get by id")
void testGetById() {
// Given: Create destination
Integer destinationId = createDestination(testPremiseId1, testNodeId1, 500);
@@ -113,8 +105,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get by id not found")
- @DisplayName("Get by id not found")
void testGetByIdNotFound() {
// When: Get non-existent ID
Optional destination = destinationRepository.getById(99999);
@@ -124,8 +114,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get by premise id")
- @DisplayName("Get by premise id")
void testGetByPremiseId() {
// When: Get destinations for premise1
List destinations = destinationRepository.getByPremiseId(testPremiseId1);
@@ -137,8 +125,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get by premise id and user id")
- @DisplayName("Get by premise id and user id")
void testGetByPremiseIdAndUserId() {
// When: Get destinations for premise1 with correct user
List destinations = destinationRepository.getByPremiseIdAndUserId(testPremiseId1, testUserId1);
@@ -149,8 +135,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get by premise id and user id wrong user")
- @DisplayName("Get by premise id and user id wrong user")
void testGetByPremiseIdAndUserIdWrongUser() {
// When: Get destinations for premise1 with wrong user
List destinations = destinationRepository.getByPremiseIdAndUserId(testPremiseId1, testUserId2);
@@ -160,8 +144,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get by premise id and user id non existent")
- @DisplayName("Get by premise id and user id non existent")
void testGetByPremiseIdAndUserIdNonExistent() {
// When: Get destinations for non-existent premise
List destinations = destinationRepository.getByPremiseIdAndUserId(99999, testUserId1);
@@ -171,8 +153,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Update")
- @DisplayName("Update")
void testUpdate() {
// Given: Create destination
Integer destinationId = createDestination(testPremiseId1, testNodeId1, 500);
@@ -202,8 +182,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Update with nulls")
- @DisplayName("Update with nulls")
void testUpdateWithNulls() {
// Given: Create destination
Integer destinationId = createDestination(testPremiseId1, testNodeId1, 500);
@@ -229,8 +207,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Update non existent")
- @DisplayName("Update non existent")
void testUpdateNonExistent() {
// When/Then: Update non-existent destination should throw
assertThrows(DatabaseException.class, () ->
@@ -238,8 +214,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Delete by id")
- @DisplayName("Delete by id")
void testDeleteById() {
// Given: Create destination
Integer destinationId = createDestination(testPremiseId1, testNodeId1, 500);
@@ -253,8 +227,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Delete by id null")
- @DisplayName("Delete by id null")
void testDeleteByIdNull() {
// When: Delete with null (should not throw)
destinationRepository.deleteById(null);
@@ -264,8 +236,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get owner id by id")
- @DisplayName("Get owner id by id")
void testGetOwnerIdById() {
// Given: Create destination for user1
Integer destinationId = createDestination(testPremiseId1, testNodeId1, 500);
@@ -279,8 +249,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get owner id by id not found")
- @DisplayName("Get owner id by id not found")
void testGetOwnerIdByIdNotFound() {
// When: Get owner ID for non-existent destination
Optional ownerId = destinationRepository.getOwnerIdById(99999);
@@ -290,8 +258,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get owner ids by ids")
- @DisplayName("Get owner ids by ids")
void testGetOwnerIdsByIds() {
// Given: Create destinations for different users
Integer dest1 = createDestination(testPremiseId1, testNodeId1, 500);
@@ -309,8 +275,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get owner ids by ids empty")
- @DisplayName("Get owner ids by ids empty")
void testGetOwnerIdsByIdsEmpty() {
// When: Get owner IDs for empty list
Map ownerMap = destinationRepository.getOwnerIdsByIds(List.of());
@@ -320,8 +284,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get owner ids by ids null")
- @DisplayName("Get owner ids by ids null")
void testGetOwnerIdsByIdsNull() {
// When: Get owner IDs for null
Map ownerMap = destinationRepository.getOwnerIdsByIds(null);
@@ -331,8 +293,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get by premise ids and node ids map")
- @DisplayName("Get by premise ids and node ids map")
void testGetByPremiseIdsAndNodeIdsMap() {
// Given: Map of premise IDs to node IDs
Map> premiseToNodes = new HashMap<>();
@@ -350,8 +310,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get by premise ids and node ids map empty")
- @DisplayName("Get by premise ids and node ids map empty")
void testGetByPremiseIdsAndNodeIdsMapEmpty() {
// When: Get with empty map
Map> result =
@@ -362,8 +320,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get by premise ids and node ids lists")
- @DisplayName("Get by premise ids and node ids lists")
void testGetByPremiseIdsAndNodeIdsLists() {
// When: Get destinations by lists
Map> result = destinationRepository.getByPremiseIdsAndNodeIds(
@@ -385,8 +341,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Insert")
- @DisplayName("Insert")
void testInsert() {
// Given: New destination
Destination newDest = new Destination();
@@ -419,8 +373,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Insert with nulls")
- @DisplayName("Insert with nulls")
void testInsertWithNulls() {
// Given: New destination with nullable fields as null
Destination newDest = new Destination();
@@ -454,8 +406,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Check owner success")
- @DisplayName("Check owner success")
void testCheckOwnerSuccess() {
// Given: Destination owned by user1
Integer destId = createDestination(testPremiseId1, testNodeId1, 500);
@@ -465,8 +415,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Check owner wrong user")
- @DisplayName("Check owner wrong user")
void testCheckOwnerWrongUser() {
// Given: Destination owned by user1
Integer destId = createDestination(testPremiseId1, testNodeId1, 500);
@@ -477,8 +425,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Check owner non existent")
- @DisplayName("Check owner non existent")
void testCheckOwnerNonExistent() {
// When/Then: Check non-existent destination should throw
assertThrows(ForbiddenException.class, () ->
@@ -486,8 +432,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Check owner list success")
- @DisplayName("Check owner list success")
void testCheckOwnerListSuccess() {
// Given: Destinations owned by user1
Integer dest1 = createDestination(testPremiseId1, testNodeId1, 500);
@@ -498,8 +442,6 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Check owner list mixed owners")
- @DisplayName("Check owner list mixed owners")
void testCheckOwnerListMixedOwners() {
// Given: Destinations with different owners
Integer dest1 = createDestination(testPremiseId1, testNodeId1, 500);
@@ -511,16 +453,12 @@ class DestinationRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Check owner list empty")
- @DisplayName("Check owner list empty")
void testCheckOwnerListEmpty() {
// When/Then: Check with empty list should not throw
assertDoesNotThrow(() -> destinationRepository.checkOwner(List.of(), testUserId1));
}
@Test
- @Story("Check owner list null")
- @DisplayName("Check owner list null")
void testCheckOwnerListNull() {
// When/Then: Check with null should not throw
assertDoesNotThrow(() -> destinationRepository.checkOwner((List) null, testUserId1));
diff --git a/src/test/java/de/avatic/lcc/repositories/premise/PremiseRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/premise/PremiseRepositoryIntegrationTest.java
index 45e4f51..b16b0dc 100644
--- a/src/test/java/de/avatic/lcc/repositories/premise/PremiseRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/premise/PremiseRepositoryIntegrationTest.java
@@ -6,11 +6,7 @@ import de.avatic.lcc.model.db.premises.PremiseState;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
import de.avatic.lcc.repositories.pagination.SearchQueryPagination;
import de.avatic.lcc.repositories.pagination.SearchQueryResult;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -36,8 +32,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=PremiseRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Premise")
class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -84,8 +78,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("List premises")
- @DisplayName("List premises")
void testListPremises() {
// Given: Pagination
SearchQueryPagination pagination = new SearchQueryPagination(1, 10);
@@ -101,8 +93,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("List premises pagination")
- @DisplayName("List premises pagination")
void testListPremisesPagination() {
// Given: Create more premises and use pagination
for (int i = 0; i < 10; i++) {
@@ -122,8 +112,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("List premises with filter")
- @DisplayName("List premises with filter")
void testListPremisesWithFilter() {
// Given: Pagination and filter
SearchQueryPagination pagination = new SearchQueryPagination(1, 10);
@@ -140,8 +128,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("List premises with draft filter")
- @DisplayName("List premises with draft filter")
void testListPremisesWithDraftFilter() {
// Given: Pagination with draft filter
SearchQueryPagination pagination = new SearchQueryPagination(1, 10);
@@ -157,8 +143,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Insert")
- @DisplayName("Insert")
void testInsert() {
// When: Insert new premise
Integer premiseId = premiseRepository.insert(
@@ -178,8 +162,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Get premise by id")
- @DisplayName("Get premise by id")
void testGetPremiseById() {
// Given: Create premise
Integer premiseId = createPremise(testUserId, testNodeId, testMaterialId, testCountryId, PremiseState.DRAFT);
@@ -194,8 +176,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Get premise by id not found")
- @DisplayName("Get premise by id not found")
void testGetPremiseByIdNotFound() {
// When: Get non-existent ID
Optional premise = premiseRepository.getPremiseById(99999);
@@ -205,8 +185,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Get premises by id")
- @DisplayName("Get premises by id")
void testGetPremisesById() {
// Given: Create multiple premises
Integer id1 = createPremise(testUserId, testNodeId, testMaterialId, testCountryId, PremiseState.DRAFT);
@@ -223,8 +201,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Get premises by id empty")
- @DisplayName("Get premises by id empty")
void testGetPremisesByIdEmpty() {
// When: Get with empty list
List premises = premiseRepository.getPremisesById(List.of());
@@ -235,8 +211,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Reset price")
- @DisplayName("Reset price")
void testResetPrice() {
// Given: Create premise with price
Integer premiseId = createPremise(testUserId, testNodeId, testMaterialId, testCountryId, PremiseState.DRAFT);
@@ -255,8 +229,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Update price")
- @DisplayName("Update price")
void testUpdatePrice() {
// Given: Create premise
Integer premiseId = createPremise(testUserId, testNodeId, testMaterialId, testCountryId, PremiseState.DRAFT);
@@ -273,8 +245,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Update material")
- @DisplayName("Update material")
void testUpdateMaterial() {
// Given: Create premise
Integer premiseId = createPremise(testUserId, testNodeId, testMaterialId, testCountryId, PremiseState.DRAFT);
@@ -291,8 +261,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Set material id")
- @DisplayName("Set material id")
void testSetMaterialId() {
// Given: Create premise and new material
Integer premiseId = createPremise(testUserId, testNodeId, testMaterialId, testCountryId, PremiseState.DRAFT);
@@ -308,8 +276,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Delete premises by id")
- @DisplayName("Delete premises by id")
void testDeletePremisesById() {
// Given: Create DRAFT premises
Integer draftId = createPremise(testUserId, testNodeId, testMaterialId, testCountryId, PremiseState.DRAFT);
@@ -324,8 +290,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Set status")
- @DisplayName("Set status")
void testSetStatus() {
// Given: Create DRAFT premise
Integer premiseId = createPremise(testUserId, testNodeId, testMaterialId, testCountryId, PremiseState.DRAFT);
@@ -340,8 +304,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Find by material id and supplier id")
- @DisplayName("Find by material id and supplier id")
void testFindByMaterialIdAndSupplierId() {
// Given: Create premise
createPremise(testUserId, testNodeId, testMaterialId, testCountryId, PremiseState.DRAFT);
@@ -358,8 +320,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Get premises by material ids and supplier ids")
- @DisplayName("Get premises by material ids and supplier ids")
void testGetPremisesByMaterialIdsAndSupplierIds() {
// Given: Create premises
createPremise(testUserId, testNodeId, testMaterialId, testCountryId, PremiseState.DRAFT);
@@ -375,8 +335,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Find associated suppliers")
- @DisplayName("Find associated suppliers")
void testFindAssociatedSuppliers() {
// Given: Premises with suppliers
createPremise(testUserId, testNodeId, testMaterialId, testCountryId, PremiseState.DRAFT);
@@ -391,8 +349,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Get ids with unlocked tariffs")
- @DisplayName("Get ids with unlocked tariffs")
void testGetIdsWithUnlockedTariffs() {
// Given: Create premises with different tariff states
Integer unlockedId = createPremise(testUserId, testNodeId, testMaterialId, testCountryId, PremiseState.DRAFT);
@@ -411,8 +367,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Get premise completed count by user id")
- @DisplayName("Get premise completed count by user id")
void testGetPremiseCompletedCountByUserId() {
// When: Get count
Integer count = premiseRepository.getPremiseCompletedCountByUserId(testUserId);
@@ -423,8 +377,6 @@ class PremiseRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest
}
@Test
- @Story("Get premise draft count by user id")
- @DisplayName("Get premise draft count by user id")
void testGetPremiseDraftCountByUserId() {
// When: Get count
Integer count = premiseRepository.getPremiseDraftCountByUserId(testUserId);
diff --git a/src/test/java/de/avatic/lcc/repositories/premise/RouteNodeRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/premise/RouteNodeRepositoryIntegrationTest.java
index 50125d5..2f57ab1 100644
--- a/src/test/java/de/avatic/lcc/repositories/premise/RouteNodeRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/premise/RouteNodeRepositoryIntegrationTest.java
@@ -3,11 +3,7 @@ package de.avatic.lcc.repositories.premise;
import de.avatic.lcc.model.db.premises.PremiseState;
import de.avatic.lcc.model.db.premises.route.RouteNode;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -33,8 +29,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=RouteNodeRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Premise")
class RouteNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -96,8 +90,6 @@ class RouteNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Get by id")
- @DisplayName("Get by id")
void testGetById() {
// Given: Create route node
Integer nodeId = createRouteNode("Test Node", testNodeId, testCountryId, true, true, true);
@@ -115,8 +107,6 @@ class RouteNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Get by id not found")
- @DisplayName("Get by id not found")
void testGetByIdNotFound() {
// When: Get non-existent ID
Optional node = routeNodeRepository.getById(99999);
@@ -126,8 +116,6 @@ class RouteNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Insert")
- @DisplayName("Insert")
void testInsert() {
// Given: New route node
RouteNode newNode = new RouteNode();
@@ -162,8 +150,6 @@ class RouteNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Insert with nulls")
- @DisplayName("Insert with nulls")
void testInsertWithNulls() {
// Given: Route node with nullable fields as null
RouteNode newNode = new RouteNode();
@@ -193,8 +179,6 @@ class RouteNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Delete all by id")
- @DisplayName("Delete all by id")
void testDeleteAllById() {
// Given: Multiple route nodes
Integer node1 = createRouteNode("Node 1", testNodeId, testCountryId, true, false, false);
@@ -211,8 +195,6 @@ class RouteNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Delete all by id empty")
- @DisplayName("Delete all by id empty")
void testDeleteAllByIdEmpty() {
// Given: Some route nodes
Integer nodeId = createRouteNode("Node", testNodeId, testCountryId, true, false, false);
@@ -225,8 +207,6 @@ class RouteNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Delete all by id null")
- @DisplayName("Delete all by id null")
void testDeleteAllByIdNull() {
// Given: Some route nodes
Integer nodeId = createRouteNode("Node", testNodeId, testCountryId, true, false, false);
@@ -239,8 +219,6 @@ class RouteNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Get from node by section id")
- @DisplayName("Get from node by section id")
void testGetFromNodeBySectionId() {
// Given: Create route section with from and to nodes
Integer fromNodeId = createRouteNode("From Node", testNodeId, testCountryId, false, false, true);
@@ -257,8 +235,6 @@ class RouteNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Get from node by section id not found")
- @DisplayName("Get from node by section id not found")
void testGetFromNodeBySectionIdNotFound() {
// When: Get from node for non-existent section
Optional fromNode = routeNodeRepository.getFromNodeBySectionId(99999);
@@ -268,8 +244,6 @@ class RouteNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Get to node by section id")
- @DisplayName("Get to node by section id")
void testGetToNodeBySectionId() {
// Given: Create route section with from and to nodes
Integer fromNodeId = createRouteNode("From Node", testNodeId, testCountryId, false, false, true);
@@ -286,8 +260,6 @@ class RouteNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Get to node by section id not found")
- @DisplayName("Get to node by section id not found")
void testGetToNodeBySectionIdNotFound() {
// When: Get to node for non-existent section
Optional toNode = routeNodeRepository.getToNodeBySectionId(99999);
@@ -297,8 +269,6 @@ class RouteNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Boolean fields")
- @DisplayName("Boolean fields")
void testBooleanFields() {
// Given: Create nodes with different boolean combinations
RouteNode node1 = new RouteNode();
@@ -346,8 +316,6 @@ class RouteNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTe
}
@Test
- @Story("Geo coordinates")
- @DisplayName("Geo coordinates")
void testGeoCoordinates() {
// Given: Node with specific coordinates
RouteNode node = new RouteNode();
diff --git a/src/test/java/de/avatic/lcc/repositories/premise/RouteRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/premise/RouteRepositoryIntegrationTest.java
index 08c1618..37fd6ae 100644
--- a/src/test/java/de/avatic/lcc/repositories/premise/RouteRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/premise/RouteRepositoryIntegrationTest.java
@@ -4,11 +4,7 @@ import de.avatic.lcc.model.db.premises.PremiseState;
import de.avatic.lcc.model.db.premises.route.Route;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
import de.avatic.lcc.util.exception.internalerror.DatabaseException;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -32,8 +28,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=RouteRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Premise")
class RouteRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -90,8 +84,6 @@ class RouteRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get by destination id")
- @DisplayName("Get by destination id")
void testGetByDestinationId() {
// When: Get routes by destination
List routes = routeRepository.getByDestinationId(testDestinationId);
@@ -103,8 +95,6 @@ class RouteRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get by destination id empty")
- @DisplayName("Get by destination id empty")
void testGetByDestinationIdEmpty() {
// When: Get routes for non-existent destination
List routes = routeRepository.getByDestinationId(99999);
@@ -115,8 +105,6 @@ class RouteRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get selected by destination id")
- @DisplayName("Get selected by destination id")
void testGetSelectedByDestinationId() {
// When: Get selected route
Optional selected = routeRepository.getSelectedByDestinationId(testDestinationId);
@@ -130,8 +118,6 @@ class RouteRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get selected by destination id not found")
- @DisplayName("Get selected by destination id not found")
void testGetSelectedByDestinationIdNotFound() {
// Given: Destination with no selected routes
Integer destinationId2 = createDestination(testPremiseId, testNodeId);
@@ -145,8 +131,6 @@ class RouteRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get selected by destination id multiple throws")
- @DisplayName("Get selected by destination id multiple throws")
void testGetSelectedByDestinationIdMultipleThrows() {
// Given: Destination with multiple selected routes (invalid state)
Integer destinationId2 = createDestination(testPremiseId, testNodeId);
@@ -159,8 +143,6 @@ class RouteRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Insert")
- @DisplayName("Insert")
void testInsert() {
// Given: New route
Route newRoute = new Route();
@@ -182,8 +164,6 @@ class RouteRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Delete all by id")
- @DisplayName("Delete all by id")
void testDeleteAllById() {
// Given: Multiple routes
List routes = routeRepository.getByDestinationId(testDestinationId);
@@ -205,8 +185,6 @@ class RouteRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Delete all by id empty")
- @DisplayName("Delete all by id empty")
void testDeleteAllByIdEmpty() {
// When: Delete with empty list
routeRepository.deleteAllById(List.of());
@@ -217,8 +195,6 @@ class RouteRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Delete all by id null")
- @DisplayName("Delete all by id null")
void testDeleteAllByIdNull() {
// When: Delete with null
routeRepository.deleteAllById(null);
@@ -229,8 +205,6 @@ class RouteRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Update selected by destination id")
- @DisplayName("Update selected by destination id")
void testUpdateSelectedByDestinationId() {
// Given: Get non-selected route
List routes = routeRepository.getByDestinationId(testDestinationId);
@@ -255,8 +229,6 @@ class RouteRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Update selected by destination id invalid route")
- @DisplayName("Update selected by destination id invalid route")
void testUpdateSelectedByDestinationIdInvalidRoute() {
// When/Then: Update with non-existent route ID should throw
assertThrows(DatabaseException.class, () ->
@@ -264,8 +236,6 @@ class RouteRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Boolean literals")
- @DisplayName("Boolean literals")
void testBooleanLiterals() {
// Given: Create routes with different boolean values
Route route1 = new Route();
diff --git a/src/test/java/de/avatic/lcc/repositories/premise/RouteSectionRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/premise/RouteSectionRepositoryIntegrationTest.java
index 55436de..1cce056 100644
--- a/src/test/java/de/avatic/lcc/repositories/premise/RouteSectionRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/premise/RouteSectionRepositoryIntegrationTest.java
@@ -5,11 +5,7 @@ import de.avatic.lcc.dto.generic.TransportType;
import de.avatic.lcc.model.db.premises.PremiseState;
import de.avatic.lcc.model.db.premises.route.RouteSection;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -34,8 +30,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=RouteSectionRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Premise")
class RouteSectionRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -103,8 +97,6 @@ class RouteSectionRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Get by route id")
- @DisplayName("Get by route id")
void testGetByRouteId() {
// When: Get sections by route ID
List sections = routeSectionRepository.getByRouteId(testRouteId);
@@ -116,8 +108,6 @@ class RouteSectionRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Get by route id empty")
- @DisplayName("Get by route id empty")
void testGetByRouteIdEmpty() {
// When: Get sections for non-existent route
List sections = routeSectionRepository.getByRouteId(99999);
@@ -128,8 +118,6 @@ class RouteSectionRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Get by id")
- @DisplayName("Get by id")
void testGetById() {
// Given: Create route section
Integer sectionId = createRouteSection(testRouteId, testFromNodeId, testToNodeId, 10,
@@ -151,8 +139,6 @@ class RouteSectionRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Get by id not found")
- @DisplayName("Get by id not found")
void testGetByIdNotFound() {
// When: Get non-existent ID
Optional section = routeSectionRepository.getById(99999);
@@ -162,8 +148,6 @@ class RouteSectionRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Insert")
- @DisplayName("Insert")
void testInsert() {
// Given: New route section
RouteSection newSection = new RouteSection();
@@ -199,8 +183,6 @@ class RouteSectionRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Insert with null distance")
- @DisplayName("Insert with null distance")
void testInsertWithNullDistance() {
// Given: Route section with null distance
RouteSection newSection = new RouteSection();
@@ -228,8 +210,6 @@ class RouteSectionRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Delete all by id")
- @DisplayName("Delete all by id")
void testDeleteAllById() {
// Given: Multiple route sections
List sections = routeSectionRepository.getByRouteId(testRouteId);
@@ -251,8 +231,6 @@ class RouteSectionRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Delete all by id empty")
- @DisplayName("Delete all by id empty")
void testDeleteAllByIdEmpty() {
// When: Delete with empty list
routeSectionRepository.deleteAllById(List.of());
@@ -263,8 +241,6 @@ class RouteSectionRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Delete all by id null")
- @DisplayName("Delete all by id null")
void testDeleteAllByIdNull() {
// When: Delete with null
routeSectionRepository.deleteAllById(null);
@@ -275,8 +251,6 @@ class RouteSectionRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Transport type enum")
- @DisplayName("Transport type enum")
void testTransportTypeEnum() {
// Given: Sections with different transport types
RouteSection section1 = new RouteSection();
@@ -320,8 +294,6 @@ class RouteSectionRepositoryIntegrationTest extends AbstractRepositoryIntegratio
}
@Test
- @Story("Boolean flags")
- @DisplayName("Boolean flags")
void testBooleanFlags() {
// Given: Section with different boolean flags (respecting constraint)
RouteSection section = new RouteSection();
diff --git a/src/test/java/de/avatic/lcc/repositories/properties/PropertyRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/properties/PropertyRepositoryIntegrationTest.java
index 2f784f3..0fa7e88 100644
--- a/src/test/java/de/avatic/lcc/repositories/properties/PropertyRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/properties/PropertyRepositoryIntegrationTest.java
@@ -4,11 +4,7 @@ import de.avatic.lcc.dto.generic.PropertyDTO;
import de.avatic.lcc.model.db.properties.SystemPropertyMappingId;
import de.avatic.lcc.model.db.rates.ValidityPeriodState;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -35,8 +31,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=PropertyRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Properties")
class PropertyRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -72,8 +66,6 @@ class PropertyRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Set property upsert")
- @DisplayName("Set property upsert")
void testSetPropertyUpsert() {
// Given: Create a property in valid set first (required by setProperty logic)
String validValue = "30";
@@ -100,8 +92,6 @@ class PropertyRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Set property deletes when matches valid value")
- @DisplayName("Set property deletes when matches valid value")
void testSetPropertyDeletesWhenMatchesValidValue() {
// Given: Create valid property with value
String validValue = "30";
@@ -121,8 +111,6 @@ class PropertyRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("List properties")
- @DisplayName("List properties")
void testListProperties() {
// Given: Create properties in draft and valid sets
createTestProperty(testDraftSetId, testPropertyTypeId, "45");
@@ -145,8 +133,6 @@ class PropertyRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("List properties by set id")
- @DisplayName("List properties by set id")
void testListPropertiesBySetId() {
// Given: Create expired property set with properties
Integer expiredSetId = createTestPropertySet(ValidityPeriodState.EXPIRED,
@@ -170,8 +156,6 @@ class PropertyRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Get property by mapping id")
- @DisplayName("Get property by mapping id")
void testGetPropertyByMappingId() {
// Given: Create valid property
createTestProperty(testValidSetId, testPropertyTypeId, "30");
@@ -186,8 +170,6 @@ class PropertyRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Get property by mapping id with set id")
- @DisplayName("Get property by mapping id with set id")
void testGetPropertyByMappingIdWithSetId() {
// Given: Create property in specific set
createTestProperty(testDraftSetId, testPropertyTypeId, "45");
@@ -201,8 +183,6 @@ class PropertyRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Get property by mapping id not found")
- @DisplayName("Get property by mapping id not found")
void testGetPropertyByMappingIdNotFound() {
// When: Get property that has no value in VALID set (WORKDAYS without creating it)
Optional property = propertyRepository.getPropertyByMappingId(
@@ -213,8 +193,6 @@ class PropertyRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Fill draft")
- @DisplayName("Fill draft")
void testFillDraft() {
// Given: Create properties in valid set
Integer propertyType2 = getPropertyTypeId(SystemPropertyMappingId.WORKDAYS.name());
@@ -243,8 +221,6 @@ class PropertyRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Fill draft ignores duplicates")
- @DisplayName("Fill draft ignores duplicates")
void testFillDraftIgnoresDuplicates() {
// Given: Create property in valid set
createTestProperty(testValidSetId, testPropertyTypeId, "30");
diff --git a/src/test/java/de/avatic/lcc/repositories/properties/PropertySetRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/properties/PropertySetRepositoryIntegrationTest.java
index 0dca7a1..d225acb 100644
--- a/src/test/java/de/avatic/lcc/repositories/properties/PropertySetRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/properties/PropertySetRepositoryIntegrationTest.java
@@ -3,11 +3,7 @@ package de.avatic.lcc.repositories.properties;
import de.avatic.lcc.model.db.properties.PropertySet;
import de.avatic.lcc.model.db.rates.ValidityPeriodState;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -24,7 +20,7 @@ import static org.junit.jupiter.api.Assertions.*;
*
* Tests critical functionality across both MySQL and MSSQL:
* - Draft creation and retrieval
- * - State transitions (DRAFT -> VALID -> EXPIRED -> INVALID)
+ * - State transitions (DRAFT → VALID → EXPIRED → INVALID)
* - Date-based queries with dialect-specific date extraction
* - Timestamp handling
*
@@ -34,8 +30,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=PropertySetRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Properties")
class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -50,8 +44,6 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get draft set")
- @DisplayName("Get draft set")
void testGetDraftSet() {
// When: Get draft set (creates if doesn't exist)
PropertySet draft = propertySetRepository.getDraftSet();
@@ -64,8 +56,6 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get draft set idempotent")
- @DisplayName("Get draft set idempotent")
void testGetDraftSetIdempotent() {
// Given: Get draft first time
PropertySet draft1 = propertySetRepository.getDraftSet();
@@ -78,8 +68,6 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get draft set id")
- @DisplayName("Get draft set id")
void testGetDraftSetId() {
// When: Get draft set ID
Integer draftId = propertySetRepository.getDraftSetId();
@@ -94,8 +82,6 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("List property sets")
- @DisplayName("List property sets")
void testListPropertySets() {
// Given: Create draft
propertySetRepository.getDraftSet();
@@ -114,14 +100,12 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Apply draft")
- @DisplayName("Apply draft")
void testApplyDraft() {
// Given: Clean state - get draft
PropertySet draft = propertySetRepository.getDraftSet();
Integer draftId = draft.getId();
- // When: Apply draft (transitions DRAFT -> VALID, creates new DRAFT)
+ // When: Apply draft (transitions DRAFT → VALID, creates new DRAFT)
propertySetRepository.applyDraft();
// Then: Old draft should now be VALID
@@ -137,8 +121,6 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get valid set")
- @DisplayName("Get valid set")
void testGetValidSet() {
// Given: Apply draft to create valid set
PropertySet draft = propertySetRepository.getDraftSet();
@@ -155,8 +137,6 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get valid set id")
- @DisplayName("Get valid set id")
void testGetValidSetId() {
// Given: Apply draft to create valid set
propertySetRepository.getDraftSet();
@@ -172,8 +152,6 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Apply draft expires old valid")
- @DisplayName("Apply draft expires old valid")
void testApplyDraftExpiresOldValid() {
// Given: Manually create a VALID set (to avoid timing issues with applyDraft)
LocalDateTime pastStart = LocalDateTime.now().minusDays(10);
@@ -192,8 +170,6 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Invalidate by id")
- @DisplayName("Invalidate by id")
void testInvalidateById() {
// Given: Create expired property set manually
LocalDateTime pastStart = LocalDateTime.now().minusDays(30);
@@ -211,8 +187,6 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Invalidate by id fails for non expired")
- @DisplayName("Invalidate by id fails for non expired")
void testInvalidateByIdFailsForNonExpired() {
// Given: Valid property set
propertySetRepository.getDraftSet();
@@ -230,8 +204,6 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Has properties draft when empty")
- @DisplayName("Has properties draft when empty")
void testHasPropertiesDraftWhenEmpty() {
// Given: Draft with no properties
propertySetRepository.getDraftSet();
@@ -244,8 +216,6 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get state")
- @DisplayName("Get state")
void testGetState() {
// Given: Draft property set
Integer draftId = propertySetRepository.getDraftSetId();
@@ -258,8 +228,6 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get by id")
- @DisplayName("Get by id")
void testGetById() {
// Given: Draft property set
Integer draftId = propertySetRepository.getDraftSetId();
@@ -274,8 +242,6 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get by id not found")
- @DisplayName("Get by id not found")
void testGetByIdNotFound() {
// When/Then: Get non-existent ID should throw exception
assertThrows(IllegalArgumentException.class, () ->
@@ -284,8 +250,6 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get by date")
- @DisplayName("Get by date")
void testGetByDate() {
// Given: Create valid set manually with past date (to avoid timing issues)
LocalDateTime validStart = LocalDateTime.now().minusDays(5);
@@ -302,8 +266,6 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get by date past date")
- @DisplayName("Get by date past date")
void testGetByDatePastDate() {
// Given: Create expired property set in the past
LocalDateTime pastStart = LocalDateTime.now().minusDays(30);
@@ -320,8 +282,6 @@ class PropertySetRepositoryIntegrationTest extends AbstractRepositoryIntegration
}
@Test
- @Story("Get by date ordering")
- @DisplayName("Get by date ordering")
void testGetByDateOrdering() {
// Given: Create multiple property sets manually
LocalDateTime old = LocalDateTime.now().minusDays(20);
diff --git a/src/test/java/de/avatic/lcc/repositories/rates/ContainerRateRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/rates/ContainerRateRepositoryIntegrationTest.java
index 1423cff..d23b354 100644
--- a/src/test/java/de/avatic/lcc/repositories/rates/ContainerRateRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/rates/ContainerRateRepositoryIntegrationTest.java
@@ -6,11 +6,7 @@ import de.avatic.lcc.model.db.rates.ValidityPeriodState;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
import de.avatic.lcc.repositories.pagination.SearchQueryPagination;
import de.avatic.lcc.repositories.pagination.SearchQueryResult;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -38,8 +34,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=ContainerRateRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Rates")
class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -88,8 +82,6 @@ class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("List rates by period id")
- @DisplayName("List rates by period id")
void testListRatesByPeriodId() {
// Given: Valid period ID
SearchQueryPagination pagination = new SearchQueryPagination(1, 10);
@@ -105,8 +97,6 @@ class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("List rates by period id with filter")
- @DisplayName("List rates by period id with filter")
void testListRatesByPeriodIdWithFilter() {
// Given: Filter for "Hamburg"
SearchQueryPagination pagination = new SearchQueryPagination(1, 10);
@@ -120,8 +110,6 @@ class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("List rates by period id with external mapping id filter")
- @DisplayName("List rates by period id with external mapping id filter")
void testListRatesByPeriodIdWithExternalMappingIdFilter() {
// Given: Filter for "HAM"
SearchQueryPagination pagination = new SearchQueryPagination(1, 10);
@@ -135,8 +123,6 @@ class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("List rates by period id pagination")
- @DisplayName("List rates by period id pagination")
void testListRatesByPeriodIdPagination() {
// Given: Pagination with limit 2
SearchQueryPagination pagination = new SearchQueryPagination(1, 2);
@@ -151,8 +137,6 @@ class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Get by id")
- @DisplayName("Get by id")
void testGetById() {
// Given: Get first rate ID
SearchQueryPagination pagination = new SearchQueryPagination(1, 1);
@@ -172,8 +156,6 @@ class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Get by id not found")
- @DisplayName("Get by id not found")
void testGetByIdNotFound() {
// When: Get non-existent ID
Optional rate = containerRateRepository.getById(99999);
@@ -183,8 +165,6 @@ class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("List all rates by period id")
- @DisplayName("List all rates by period id")
void testListAllRatesByPeriodId() {
// When: List all rates for valid period
List rates = containerRateRepository.listAllRatesByPeriodId(testValidPeriodId);
@@ -196,8 +176,6 @@ class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Find routes by start node id and destination country id")
- @DisplayName("Find routes by start node id and destination country id")
void testFindRoutesByStartNodeIdAndDestinationCountryId() {
// When: Find routes from Hamburg to US
List routes = containerRateRepository.findRoutesByStartNodeIdAndDestinationCountryId(
@@ -212,8 +190,6 @@ class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Find routes by start node id and destination country id multiple")
- @DisplayName("Find routes by start node id and destination country id multiple")
void testFindRoutesByStartNodeIdAndDestinationCountryIdMultiple() {
// When: Find routes from Hamburg to DE or US
List routes = containerRateRepository.findRoutesByStartNodeIdAndDestinationCountryId(
@@ -226,8 +202,6 @@ class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Find routes by start node id and destination country id empty")
- @DisplayName("Find routes by start node id and destination country id empty")
void testFindRoutesByStartNodeIdAndDestinationCountryIdEmpty() {
// When: Find routes with empty destination list
List routes = containerRateRepository.findRoutesByStartNodeIdAndDestinationCountryId(
@@ -239,8 +213,6 @@ class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Get post runs for")
- @DisplayName("Get post runs for")
void testGetPostRunsFor() {
// Given: Create a main run and post-run
Integer testNodeWarehouseId = createTestNode("Warehouse", "WH1", testCountryUsId, false, 40.8, -74.1);
@@ -261,8 +233,6 @@ class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Find route with period id")
- @DisplayName("Find route with period id")
void testFindRouteWithPeriodId() {
// When: Find route Hamburg -> New York SEA in valid period
Optional route = containerRateRepository.findRoute(
@@ -277,8 +247,6 @@ class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Find route with period id not found")
- @DisplayName("Find route with period id not found")
void testFindRouteWithPeriodIdNotFound() {
// When: Find route with wrong transport type
Optional route = containerRateRepository.findRoute(
@@ -289,8 +257,6 @@ class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Find route without period id")
- @DisplayName("Find route without period id")
void testFindRouteWithoutPeriodId() {
// When: Find route Hamburg -> New York SEA (uses VALID period)
Optional route = containerRateRepository.findRoute(
@@ -304,8 +270,6 @@ class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Insert new rate")
- @DisplayName("Insert new rate")
void testInsertNewRate() {
// Given: New container rate
ContainerRate newRate = new ContainerRate();
@@ -329,8 +293,6 @@ class ContainerRateRepositoryIntegrationTest extends AbstractRepositoryIntegrati
}
@Test
- @Story("Insert upsert existing")
- @DisplayName("Insert upsert existing")
void testInsertUpsertExisting() {
// Given: Existing rate Hamburg -> New York
ContainerRate updateRate = new ContainerRate();
diff --git a/src/test/java/de/avatic/lcc/repositories/rates/MatrixRateRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/rates/MatrixRateRepositoryIntegrationTest.java
index 5d45d94..c398fd2 100644
--- a/src/test/java/de/avatic/lcc/repositories/rates/MatrixRateRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/rates/MatrixRateRepositoryIntegrationTest.java
@@ -5,11 +5,7 @@ import de.avatic.lcc.model.db.rates.ValidityPeriodState;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
import de.avatic.lcc.repositories.pagination.SearchQueryPagination;
import de.avatic.lcc.repositories.pagination.SearchQueryResult;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -36,8 +32,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=MatrixRateRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Rates")
class MatrixRateRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -79,8 +73,6 @@ class MatrixRateRepositoryIntegrationTest extends AbstractRepositoryIntegrationT
}
@Test
- @Story("List rates")
- @DisplayName("List rates")
void testListRates() {
// Given: Pagination
SearchQueryPagination pagination = new SearchQueryPagination(1, 10);
@@ -96,8 +88,6 @@ class MatrixRateRepositoryIntegrationTest extends AbstractRepositoryIntegrationT
}
@Test
- @Story("List rates pagination")
- @DisplayName("List rates pagination")
void testListRatesPagination() {
// Given: Pagination with limit 1
SearchQueryPagination pagination = new SearchQueryPagination(1, 1);
@@ -112,8 +102,6 @@ class MatrixRateRepositoryIntegrationTest extends AbstractRepositoryIntegrationT
}
@Test
- @Story("List rates by period id")
- @DisplayName("List rates by period id")
void testListRatesByPeriodId() {
// Given: Valid period ID
SearchQueryPagination pagination = new SearchQueryPagination(1, 10);
@@ -129,8 +117,6 @@ class MatrixRateRepositoryIntegrationTest extends AbstractRepositoryIntegrationT
}
@Test
- @Story("List rates by period id with filter")
- @DisplayName("List rates by period id with filter")
void testListRatesByPeriodIdWithFilter() {
// Given: Filter for "Germany"
SearchQueryPagination pagination = new SearchQueryPagination(1, 10);
@@ -144,8 +130,6 @@ class MatrixRateRepositoryIntegrationTest extends AbstractRepositoryIntegrationT
}
@Test
- @Story("List rates by period id with iso code filter")
- @DisplayName("List rates by period id with iso code filter")
void testListRatesByPeriodIdWithIsoCodeFilter() {
// Given: Filter for "US"
SearchQueryPagination pagination = new SearchQueryPagination(1, 10);
@@ -159,8 +143,6 @@ class MatrixRateRepositoryIntegrationTest extends AbstractRepositoryIntegrationT
}
@Test
- @Story("Get by id")
- @DisplayName("Get by id")
void testGetById() {
// Given: Get first rate ID
SearchQueryPagination pagination = new SearchQueryPagination(1, 1);
@@ -179,8 +161,6 @@ class MatrixRateRepositoryIntegrationTest extends AbstractRepositoryIntegrationT
}
@Test
- @Story("List all rates by period id")
- @DisplayName("List all rates by period id")
void testListAllRatesByPeriodId() {
// When: List all rates for valid period
List rates = matrixRateRepository.listAllRatesByPeriodId(testValidPeriodId);
@@ -192,8 +172,6 @@ class MatrixRateRepositoryIntegrationTest extends AbstractRepositoryIntegrationT
}
@Test
- @Story("Get by country ids")
- @DisplayName("Get by country ids")
void testGetByCountryIds() {
// When: Get rate from DE to US
Optional rate = matrixRateRepository.getByCountryIds(testCountryDeId, testCountryUsId);
@@ -206,8 +184,6 @@ class MatrixRateRepositoryIntegrationTest extends AbstractRepositoryIntegrationT
}
@Test
- @Story("Get by country ids not found")
- @DisplayName("Get by country ids not found")
void testGetByCountryIdsNotFound() {
// Given: Non-existent country combination
Integer nonExistentCountryId = 99999;
@@ -220,8 +196,6 @@ class MatrixRateRepositoryIntegrationTest extends AbstractRepositoryIntegrationT
}
@Test
- @Story("Get by country ids with period id")
- @DisplayName("Get by country ids with period id")
void testGetByCountryIdsWithPeriodId() {
// When: Get rate from DE to US in valid period
Optional rate = matrixRateRepository.getByCountryIds(testCountryDeId, testCountryUsId, testValidPeriodId);
@@ -234,8 +208,6 @@ class MatrixRateRepositoryIntegrationTest extends AbstractRepositoryIntegrationT
}
@Test
- @Story("Get by country ids with wrong period id")
- @DisplayName("Get by country ids with wrong period id")
void testGetByCountryIdsWithWrongPeriodId() {
// When: Get rate with wrong period ID
Optional rate = matrixRateRepository.getByCountryIds(testCountryDeId, testCountryUsId, testDraftPeriodId);
@@ -245,8 +217,6 @@ class MatrixRateRepositoryIntegrationTest extends AbstractRepositoryIntegrationT
}
@Test
- @Story("Insert new rate")
- @DisplayName("Insert new rate")
void testInsertNewRate() {
// Given: New matrix rate
MatrixRate newRate = new MatrixRate();
@@ -265,8 +235,6 @@ class MatrixRateRepositoryIntegrationTest extends AbstractRepositoryIntegrationT
}
@Test
- @Story("Insert upsert existing")
- @DisplayName("Insert upsert existing")
void testInsertUpsertExisting() {
// Given: Existing rate DE -> US
MatrixRate updateRate = new MatrixRate();
@@ -289,8 +257,6 @@ class MatrixRateRepositoryIntegrationTest extends AbstractRepositoryIntegrationT
}
@Test
- @Story("Copy current to draft")
- @DisplayName("Copy current to draft")
void testCopyCurrentToDraft() {
// Given: Valid period has 3 rates, draft has 0
List draftRatesBefore = matrixRateRepository.listAllRatesByPeriodId(testDraftPeriodId);
diff --git a/src/test/java/de/avatic/lcc/repositories/rates/ValidityPeriodRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/rates/ValidityPeriodRepositoryIntegrationTest.java
index e26ce51..63e37c2 100644
--- a/src/test/java/de/avatic/lcc/repositories/rates/ValidityPeriodRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/rates/ValidityPeriodRepositoryIntegrationTest.java
@@ -3,11 +3,7 @@ package de.avatic.lcc.repositories.rates;
import de.avatic.lcc.model.db.rates.ValidityPeriod;
import de.avatic.lcc.model.db.rates.ValidityPeriodState;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -34,8 +30,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=ValidityPeriodRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Rates")
class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -66,8 +60,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("List periods")
- @DisplayName("List periods")
void testListPeriods() {
// When: List all periods
List periods = validityPeriodRepository.listPeriods();
@@ -84,8 +76,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get by id")
- @DisplayName("Get by id")
void testGetById() {
// When: Get by ID
ValidityPeriod period = validityPeriodRepository.getById(testValidPeriodId);
@@ -99,8 +89,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get valid period")
- @DisplayName("Get valid period")
void testGetValidPeriod() {
// When: Get valid period
Optional period = validityPeriodRepository.getValidPeriod();
@@ -112,8 +100,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get valid period id")
- @DisplayName("Get valid period id")
void testGetValidPeriodId() {
// When: Get valid period ID
Optional periodId = validityPeriodRepository.getValidPeriodId();
@@ -124,8 +110,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Invalidate by id")
- @DisplayName("Invalidate by id")
void testInvalidateById() {
// When: Invalidate expired period
boolean invalidated = validityPeriodRepository.invalidateById(testExpiredPeriodId);
@@ -138,8 +122,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Invalidate by id fails for non expired")
- @DisplayName("Invalidate by id fails for non expired")
void testInvalidateByIdFailsForNonExpired() {
// When: Try to invalidate VALID period (should only work for EXPIRED)
boolean invalidated = validityPeriodRepository.invalidateById(testValidPeriodId);
@@ -152,8 +134,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get period id")
- @DisplayName("Get period id")
void testGetPeriodId() {
// Given: Time within valid period
LocalDateTime now = LocalDateTime.now();
@@ -167,8 +147,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get period id for past date")
- @DisplayName("Get period id for past date")
void testGetPeriodIdForPastDate() {
// Given: Time within expired period range
LocalDateTime pastTime = LocalDateTime.now().minusDays(20);
@@ -182,8 +160,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get period id not found")
- @DisplayName("Get period id not found")
void testGetPeriodIdNotFound() {
// Given: Only expired periods (create valid period with end date so future is not covered)
jdbcTemplate.update("DELETE FROM validity_period WHERE state = 'VALID'");
@@ -199,8 +175,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get by date")
- @DisplayName("Get by date")
void testGetByDate() {
// Given: Today's date
LocalDate today = LocalDate.now();
@@ -215,8 +189,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get by date past")
- @DisplayName("Get by date past")
void testGetByDatePast() {
// Given: Date within expired period range
LocalDate pastDate = LocalDate.now().minusDays(20);
@@ -231,8 +203,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get by date not found")
- @DisplayName("Get by date not found")
void testGetByDateNotFound() {
// Given: Only expired periods (create valid period with end date so future is not covered)
jdbcTemplate.update("DELETE FROM validity_period WHERE state = 'VALID'");
@@ -248,8 +218,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Has rate drafts")
- @DisplayName("Has rate drafts")
void testHasRateDrafts() {
// Given: Create draft period (but no associated rates)
Integer draftId = createTestValidityPeriod(ValidityPeriodState.DRAFT,
@@ -263,8 +231,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Has matrix rate drafts")
- @DisplayName("Has matrix rate drafts")
void testHasMatrixRateDrafts() {
// Given: Create draft period (but no associated matrix rates)
Integer draftId = createTestValidityPeriod(ValidityPeriodState.DRAFT,
@@ -278,8 +244,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Has container rate drafts")
- @DisplayName("Has container rate drafts")
void testHasContainerRateDrafts() {
// Given: Create draft period (but no associated container rates)
Integer draftId = createTestValidityPeriod(ValidityPeriodState.DRAFT,
@@ -293,8 +257,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Increase renewal")
- @DisplayName("Increase renewal")
void testIncreaseRenewal() {
// Given: Valid period with initial renewals
ValidityPeriod before = validityPeriodRepository.getById(testValidPeriodId);
@@ -310,8 +272,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Get by date ordering with pagination")
- @DisplayName("Get by date ordering with pagination")
void testGetByDateOrderingWithPagination() {
// Given: Multiple periods with overlapping date ranges
// testExpiredPeriodId covers: -30 to -15 days
@@ -329,8 +289,6 @@ class ValidityPeriodRepositoryIntegrationTest extends AbstractRepositoryIntegrat
}
@Test
- @Story("Multiple periods")
- @DisplayName("Multiple periods")
void testMultiplePeriods() {
// Given: Create multiple periods
Integer draft = createTestValidityPeriod(ValidityPeriodState.DRAFT,
diff --git a/src/test/java/de/avatic/lcc/repositories/users/AppRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/users/AppRepositoryIntegrationTest.java
index 4209902..d535e99 100644
--- a/src/test/java/de/avatic/lcc/repositories/users/AppRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/users/AppRepositoryIntegrationTest.java
@@ -3,11 +3,7 @@ package de.avatic.lcc.repositories.users;
import de.avatic.lcc.model.db.users.App;
import de.avatic.lcc.model.db.users.Group;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -32,8 +28,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=AppRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Users")
class AppRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -50,8 +44,6 @@ class AppRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("List apps")
- @DisplayName("List apps")
void testListApps() {
// Given: Insert test apps
App app1 = createTestApp("Test App 1", "client1", "secret1");
@@ -73,8 +65,6 @@ class AppRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get by id")
- @DisplayName("Get by id")
void testGetById() {
// Given: Create app
App app = createTestApp("Test App", "client123", "secret123");
@@ -91,8 +81,6 @@ class AppRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get by id not found")
- @DisplayName("Get by id not found")
void testGetByIdNotFound() {
// When: Get non-existent app
Optional result = appRepository.getById(99999);
@@ -102,8 +90,6 @@ class AppRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get by client id")
- @DisplayName("Get by client id")
void testGetByClientId() {
// Given: Create app with specific client ID
App app = createTestApp("OAuth App", "oauth_client_id", "oauth_secret");
@@ -118,8 +104,6 @@ class AppRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get by client id not found")
- @DisplayName("Get by client id not found")
void testGetByClientIdNotFound() {
// When: Get non-existent client ID
Optional result = appRepository.getByClientId("nonexistent");
@@ -129,8 +113,6 @@ class AppRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Insert app")
- @DisplayName("Insert app")
void testInsertApp() {
// Given: New app
App app = createTestApp("New App", "new_client", "new_secret");
@@ -149,8 +131,6 @@ class AppRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Update app")
- @DisplayName("Update app")
void testUpdateApp() {
// Given: Existing app
App app = createTestApp("Original Name", "update_client", "update_secret");
@@ -168,8 +148,6 @@ class AppRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Delete app")
- @DisplayName("Delete app")
void testDeleteApp() {
// Given: Create app
App app = createTestApp("Delete Me", "delete_client", "delete_secret");
@@ -184,8 +162,6 @@ class AppRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("App with groups")
- @DisplayName("App with groups")
void testAppWithGroups() {
// Given: App with groups
App app = createTestApp("App with Groups", "grouped_client", "grouped_secret");
@@ -211,8 +187,6 @@ class AppRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Update app groups")
- @DisplayName("Update app groups")
void testUpdateAppGroups() {
// Given: App with one group
App app = createTestApp("Group Update Test", "group_update_client", "group_update_secret");
@@ -236,8 +210,6 @@ class AppRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Delete app cascades group mappings")
- @DisplayName("Delete app cascades group mappings")
void testDeleteAppCascadesGroupMappings() {
// Given: App with groups
App app = createTestApp("Cascade Delete Test", "cascade_client", "cascade_secret");
@@ -256,8 +228,6 @@ class AppRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("App with empty groups")
- @DisplayName("App with empty groups")
void testAppWithEmptyGroups() {
// Given: App with empty groups list
App app = createTestApp("No Groups App", "no_groups_client", "no_groups_secret");
diff --git a/src/test/java/de/avatic/lcc/repositories/users/GroupRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/users/GroupRepositoryIntegrationTest.java
index 86f25ee..1744cca 100644
--- a/src/test/java/de/avatic/lcc/repositories/users/GroupRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/users/GroupRepositoryIntegrationTest.java
@@ -4,11 +4,7 @@ import de.avatic.lcc.model.db.users.Group;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
import de.avatic.lcc.repositories.pagination.SearchQueryPagination;
import de.avatic.lcc.repositories.pagination.SearchQueryResult;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -30,8 +26,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=GroupRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Users")
class GroupRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -51,8 +45,6 @@ class GroupRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("List groups")
- @DisplayName("List groups")
void testListGroups() {
// Given: Pagination
SearchQueryPagination pagination = new SearchQueryPagination(1, 10);
@@ -67,8 +59,6 @@ class GroupRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("List groups pagination")
- @DisplayName("List groups pagination")
void testListGroupsPagination() {
// Given: Pagination with limit 2
SearchQueryPagination pagination = new SearchQueryPagination(1, 2);
@@ -83,8 +73,6 @@ class GroupRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("List groups ordering")
- @DisplayName("List groups ordering")
void testListGroupsOrdering() {
// Given: Pagination
SearchQueryPagination pagination = new SearchQueryPagination(1, 10);
@@ -102,8 +90,6 @@ class GroupRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Find group ids")
- @DisplayName("Find group ids")
void testFindGroupIds() {
// When: Find group IDs by names
List ids = groupRepository.findGroupIds(List.of("Administrators", "Developers"));
@@ -114,8 +100,6 @@ class GroupRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Find group ids single")
- @DisplayName("Find group ids single")
void testFindGroupIdsSingle() {
// When: Find single group ID
List ids = groupRepository.findGroupIds(List.of("Administrators"));
@@ -126,8 +110,6 @@ class GroupRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Find group ids not found")
- @DisplayName("Find group ids not found")
void testFindGroupIdsNotFound() {
// When: Find non-existent group
List ids = groupRepository.findGroupIds(List.of("NonExistent"));
@@ -138,8 +120,6 @@ class GroupRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Find group ids empty list")
- @DisplayName("Find group ids empty list")
void testFindGroupIdsEmptyList() {
// When: Find with empty list
List ids = groupRepository.findGroupIds(List.of());
@@ -150,8 +130,6 @@ class GroupRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Find group ids null")
- @DisplayName("Find group ids null")
void testFindGroupIdsNull() {
// When: Find with null
List ids = groupRepository.findGroupIds(null);
@@ -162,8 +140,6 @@ class GroupRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Update group insert")
- @DisplayName("Update group insert")
void testUpdateGroupInsert() {
// Given: New group
Group newGroup = new Group();
@@ -184,8 +160,6 @@ class GroupRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Update group upsert")
- @DisplayName("Update group upsert")
void testUpdateGroupUpsert() {
// Given: Existing group name
Group updateGroup = new Group();
@@ -211,8 +185,6 @@ class GroupRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Find group ids multiple")
- @DisplayName("Find group ids multiple")
void testFindGroupIdsMultiple() {
// When: Find multiple group IDs
List ids = groupRepository.findGroupIds(
@@ -224,8 +196,6 @@ class GroupRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Find group ids partial match")
- @DisplayName("Find group ids partial match")
void testFindGroupIdsPartialMatch() {
// When: Find mix of existing and non-existing groups
List ids = groupRepository.findGroupIds(
diff --git a/src/test/java/de/avatic/lcc/repositories/users/UserNodeRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/users/UserNodeRepositoryIntegrationTest.java
index 355d200..6f69cf2 100644
--- a/src/test/java/de/avatic/lcc/repositories/users/UserNodeRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/users/UserNodeRepositoryIntegrationTest.java
@@ -2,11 +2,7 @@ package de.avatic.lcc.repositories.users;
import de.avatic.lcc.model.db.nodes.Node;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -32,8 +28,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=UserNodeRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Users")
class UserNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -54,8 +48,6 @@ class UserNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Add and retrieve")
- @DisplayName("Add and retrieve")
void testAddAndRetrieve() {
// Given: Create user node
Node node = createTestNode("Test Supplier Berlin", "Berlin, Germany", 52.5200, 13.4050);
@@ -82,8 +74,6 @@ class UserNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Get by id not found")
- @DisplayName("Get by id not found")
void testGetByIdNotFound() {
// When: Get by non-existent ID
Optional result = userNodeRepository.getById(99999);
@@ -93,8 +83,6 @@ class UserNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Search node with filter")
- @DisplayName("Search node with filter")
void testSearchNodeWithFilter() {
// Given: Insert multiple user nodes
Node node1 = createTestNode("Berlin Supplier", "Berlin", 52.5200, 13.4050);
@@ -120,8 +108,6 @@ class UserNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Search node with pagination")
- @DisplayName("Search node with pagination")
void testSearchNodeWithPagination() {
// Given: Insert multiple user nodes
for (int i = 1; i <= 5; i++) {
@@ -138,8 +124,6 @@ class UserNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Search node exclude deprecated")
- @DisplayName("Search node exclude deprecated")
void testSearchNodeExcludeDeprecated() {
// Given: Insert deprecated and non-deprecated user nodes
Node deprecated = createTestNode("Deprecated Supplier", "Old Address", 50.0, 10.0);
@@ -160,8 +144,6 @@ class UserNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Search node by user id")
- @DisplayName("Search node by user id")
void testSearchNodeByUserId() {
// Given: Insert nodes for different users
Node user1Node = createTestNode("User 1 Supplier", "User 1 Address", 50.0, 10.0);
@@ -185,8 +167,6 @@ class UserNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Get by ids")
- @DisplayName("Get by ids")
void testGetByIds() {
// Given: Insert multiple user nodes
Node node1 = createTestNode("Bulk Node 1", "Address 1", 50.0, 10.0);
@@ -213,8 +193,6 @@ class UserNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Get by ids empty list")
- @DisplayName("Get by ids empty list")
void testGetByIdsEmptyList() {
// When: Get by empty list
Collection nodes = userNodeRepository.getByIds(List.of());
@@ -225,8 +203,6 @@ class UserNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Get owner by id")
- @DisplayName("Get owner by id")
void testGetOwnerById() {
// Given: Insert user node
Node node = createTestNode("Owner Test Node", "Address", 50.0, 10.0);
@@ -241,8 +217,6 @@ class UserNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Get owner by id not found")
- @DisplayName("Get owner by id not found")
void testGetOwnerByIdNotFound() {
// When: Get owner of non-existent node
Optional owner = userNodeRepository.getOwnerById(99999);
@@ -252,8 +226,6 @@ class UserNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Check owner valid")
- @DisplayName("Check owner valid")
void testCheckOwnerValid() {
// Given: Insert user nodes
Node node1 = createTestNode("Owner Check 1", "Address 1", 50.0, 10.0);
@@ -269,8 +241,6 @@ class UserNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Check owner invalid")
- @DisplayName("Check owner invalid")
void testCheckOwnerInvalid() {
// Given: Insert user node for user1
Node node = createTestNode("Owner Violation", "Address", 50.0, 10.0);
@@ -283,8 +253,6 @@ class UserNodeRepositoryIntegrationTest extends AbstractRepositoryIntegrationTes
}
@Test
- @Story("Check owner empty list")
- @DisplayName("Check owner empty list")
void testCheckOwnerEmptyList() {
// When/Then: Should not throw exception for empty list
assertDoesNotThrow(() ->
diff --git a/src/test/java/de/avatic/lcc/repositories/users/UserRepositoryIntegrationTest.java b/src/test/java/de/avatic/lcc/repositories/users/UserRepositoryIntegrationTest.java
index 376d5f0..297e1bd 100644
--- a/src/test/java/de/avatic/lcc/repositories/users/UserRepositoryIntegrationTest.java
+++ b/src/test/java/de/avatic/lcc/repositories/users/UserRepositoryIntegrationTest.java
@@ -5,11 +5,7 @@ import de.avatic.lcc.model.db.users.User;
import de.avatic.lcc.repositories.AbstractRepositoryIntegrationTest;
import de.avatic.lcc.repositories.pagination.SearchQueryPagination;
import de.avatic.lcc.repositories.pagination.SearchQueryResult;
-import io.qameta.allure.Epic;
-import io.qameta.allure.Feature;
-import io.qameta.allure.Story;
import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -33,8 +29,6 @@ import static org.junit.jupiter.api.Assertions.*;
* mvn test -Dspring.profiles.active=test,mssql -Dtest=UserRepositoryIntegrationTest
*
*/
-@Epic("Repository")
-@Feature("Users")
class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
@Autowired
@@ -73,8 +67,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("List users")
- @DisplayName("List users")
void testListUsers() {
// Given: Pagination
SearchQueryPagination pagination = new SearchQueryPagination(1, 10);
@@ -89,8 +81,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("List users pagination")
- @DisplayName("List users pagination")
void testListUsersPagination() {
// Given: Pagination with limit 2
SearchQueryPagination pagination = new SearchQueryPagination(1, 2);
@@ -105,8 +95,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("List users ordering")
- @DisplayName("List users ordering")
void testListUsersOrdering() {
// Given: Pagination
SearchQueryPagination pagination = new SearchQueryPagination(1, 10);
@@ -124,8 +112,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Update insert new user")
- @DisplayName("Update insert new user")
void testUpdateInsertNewUser() {
// Given: New user
User newUser = new User();
@@ -150,8 +136,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Update existing user")
- @DisplayName("Update existing user")
void testUpdateExistingUser() {
// Given: Existing user
User user = userRepository.getByWorkdayId("WD001").orElseThrow();
@@ -171,8 +155,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Update user with groups")
- @DisplayName("Update user with groups")
void testUpdateUserWithGroups() {
// Given: New user with groups
User newUser = new User();
@@ -198,8 +180,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Update user remove groups")
- @DisplayName("Update user remove groups")
void testUpdateUserRemoveGroups() {
// Given: User with groups
User user = userRepository.getByWorkdayId("WD001").orElseThrow();
@@ -215,8 +195,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Update user change groups")
- @DisplayName("Update user change groups")
void testUpdateUserChangeGroups() {
// Given: User with Admin group
User user = userRepository.getByWorkdayId("WD001").orElseThrow();
@@ -235,8 +213,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Count")
- @DisplayName("Count")
void testCount() {
// When: Count users
Integer count = userRepository.count();
@@ -246,8 +222,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get user id by workday id")
- @DisplayName("Get user id by workday id")
void testGetUserIdByWorkdayId() {
// When: Get user ID by workday ID
Integer userId = userRepository.getUserIdByWorkdayId("WD001");
@@ -258,8 +232,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get user id by workday id not found")
- @DisplayName("Get user id by workday id not found")
void testGetUserIdByWorkdayIdNotFound() {
// When: Get non-existent user
Integer userId = userRepository.getUserIdByWorkdayId("NONEXISTENT");
@@ -269,8 +241,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get by workday id")
- @DisplayName("Get by workday id")
void testGetByWorkdayId() {
// When: Get user by workday ID
Optional user = userRepository.getByWorkdayId("WD001");
@@ -283,8 +253,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get by workday id not found")
- @DisplayName("Get by workday id not found")
void testGetByWorkdayIdNotFound() {
// When: Get non-existent user
Optional user = userRepository.getByWorkdayId("NONEXISTENT");
@@ -294,8 +262,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get by id")
- @DisplayName("Get by id")
void testGetById() {
// Given: User ID
Integer userId = userRepository.getUserIdByWorkdayId("WD001");
@@ -309,8 +275,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get by id not found")
- @DisplayName("Get by id not found")
void testGetByIdNotFound() {
// When: Get non-existent ID
User user = userRepository.getById(99999);
@@ -320,8 +284,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get by email")
- @DisplayName("Get by email")
void testGetByEmail() {
// When: Get user by email
User user = userRepository.getByEmail("john.doe@example.com");
@@ -333,8 +295,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("Get by email not found")
- @DisplayName("Get by email not found")
void testGetByEmailNotFound() {
// When: Get non-existent email
User user = userRepository.getByEmail("nonexistent@example.com");
@@ -344,8 +304,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("User with group memberships")
- @DisplayName("User with group memberships")
void testUserWithGroupMemberships() {
// When: Get user with groups
User user = userRepository.getByWorkdayId("WD001").orElseThrow();
@@ -357,8 +315,6 @@ class UserRepositoryIntegrationTest extends AbstractRepositoryIntegrationTest {
}
@Test
- @Story("User without group memberships")
- @DisplayName("User without group memberships")
void testUserWithoutGroupMemberships() {
// When: Get user without groups
User user = userRepository.getByWorkdayId("WD003").orElseThrow();
diff --git a/src/test/resources/application-test.properties b/src/test/resources/application-test.properties
index d72347d..dfd0130 100644
--- a/src/test/resources/application-test.properties
+++ b/src/test/resources/application-test.properties
@@ -55,7 +55,7 @@ spring.task.scheduling.enabled=false
logging.level.org.flywaydb=INFO
logging.level.org.testcontainers=INFO
logging.level.de.avatic.lcc=DEBUG
-#logging.level.org.springframework.jdbc=DEBUG
+logging.level.org.springframework.jdbc=DEBUG