Skip to content

Commit

Permalink
fix(policy-check):[eclipse-tractusx#649] remove duplicate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmf committed Jul 12, 2024
1 parent 45f1977 commit 66718dd
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,23 +101,6 @@ void shouldAcceptAndConstraint() {
assertThat(result).isTrue();
}

@Test
void shouldNotAcceptAndConstraintWithOneLessElement() { // TODO remove this duplicate test, see SubsetAndTests
final AndConstraint andConstraint = createAndConstraint(
List.of(createAtomicConstraint(TestConstants.FRAMEWORK_AGREEMENT_TRACEABILITY,
TestConstants.STATUS_ACTIVE),
createAtomicConstraint(TestConstants.MEMBERSHIP, TestConstants.STATUS_ACTIVE),
createAtomicConstraint(TestConstants.PURPOSE, TestConstants.ID_3_1_TRACE)));

final Policy acceptedPolicy = createPolicyWithAndConstraint(
List.of(new Operand(TestConstants.FRAMEWORK_AGREEMENT_TRACEABILITY, TestConstants.STATUS_ACTIVE),
new Operand(TestConstants.PURPOSE, TestConstants.ID_3_1_TRACE)));

final boolean result = cut.hasAllConstraint(acceptedPolicy, List.of(andConstraint));

assertThat(result).isFalse();
}

@Nested
@DisplayName("Tests asserting that for AND all must match in both ways (no subset match allowed)")
class SubsetAndTests {
Expand Down

0 comments on commit 66718dd

Please sign in to comment.