use of org.archifacts.core.descriptor.SourceBasedArtifactRelationshipDescriptor in project archifacts by archifacts.
the class AxonDescriptorsTest method assertThat_source_based_artifact_relationship_descriptor_are_recognized.
@ParameterizedTest
@MethodSource("getSourceBasedArtifactRelationshipDescriptors")
void assertThat_source_based_artifact_relationship_descriptor_are_recognized(final SourceBasedArtifactRelationshipDescriptor sourceBasedArtifactRelationshipDescriptor, final Tuple... expectedTuples) {
final Application application = Application.builder().descriptor(sourceBasedArtifactRelationshipDescriptor).buildApplication(DOMAIN);
assertThat(application.getRelationshipsOfRole(sourceBasedArtifactRelationshipDescriptor.role())).extracting(r -> r.getSource().getJavaClass().reflect(), r -> r.getTarget().getJavaClass().reflect()).containsExactlyInAnyOrder(expectedTuples);
}
Aggregations