feature/digital-twin-part #1477
Closed
ds-vlisenco wants to merge 32 commits intoeclipse-tractusx:mainfrom
Closed
Conversation
…eature/policy-unit-test
Added input validation to PolicyServiceImpl#getPolicy to throw IllegalArgumentException when policy ID is null or blank. This ensures consistent error handling and aligns with unit test expectations. Also resolves failing test cases in PolicyServiceImplTest that check for invalid inputs.
Added input validation to PolicyServiceImpl#getPolicy to throw IllegalArgumentException when policy ID is null or blank. This ensures consistent error handling and aligns with unit test expectations. Also resolves failing test cases in PolicyServiceImplTest that check for invalid inputs.
…eature/policy-unit-test
feature/policy-unit-test
fix: add null checks to PolicyServiceImpl to handle invalid input
…eature/policy-unit-test
feature/policy-unit-test
Introduced @nested classes to logically group tests by method Added helper method createPolicyResponse to reduce duplication and simplify test setup Fixed usage of PolicyResponse.policyId() to match record syntax (instead of incorrect getPolicyId()) Corrected construction of Payload and IrsPolicyResponse based on their actual constructors Improved test assertions to verify actual field values instead of only presence or size Preserved existing test coverage for all main methods
license header is provided
feature/policy-unit-test license header is provided
feature/digital-twin-part
…neration feature/automate-test-data-generation
…neration feature/automate-test-data-generation
…ation' into feature/automate-test-data-generation
…neration feature/automate-test-data-generation
…neration feature/automate-test-data-generation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor Integration Test with
DigitalTwinPartApiSupportSummary
This Pull Request introduces a new support class
DigitalTwinPartApiSupportto handle all REST interactions related to/digitalTwinPartendpoints.It improves test maintainability, reduces duplication, and aligns with the established testing architecture (e.g.,
AssetsApiSupport).Goal
DigitalTwinPartsControllerITDigitalTwinPartApiSupportclassWhat's Included
Added
DigitalTwinPartApiSupport.javaunderintegration/common/supportPOST /api/administration/digitalTwinPartPOST /api/administration/digitalTwinPart/detailPOST /api/administration/digitalTwinPart/searchable-valuesJwtRole.ADMINexpectedStatusCodeparameter for validationTypeRef<T>/Class<T>JoseExceptionRefactored
DigitalTwinPartsControllerITnow useDigitalTwinPartApiSupportRestAssuredcalls removed from the test classNew Test Added
shouldReturnSearchableValuesForFieldName()/searchable-valuesendpointDesign Notes
AssetsApiSupport@Componentand@RequiredArgsConstructorfor clean DI.log().all())JoseExceptioninRuntimeExceptionAcceptance Criteria Met
/digitalTwinPart*calls extracted to support classRelated Issue
Closes #3 – Refactor Integration Test with DigitalTwinPartApiSupport