Skip to content

Enabling disabled components in test #1290

@aklikic

Description

@aklikic

if you disable a component in the Setup, and try to override that in the test it doesn't work.
Setup:

@Override
public Set<Class<?>> disabledComponents() {
    return Set.of(AddressToPlaceServiceConsumer.class);
}

test:

@Override
protected TestKit.Settings testKitSettings() {
    return TestKit.Settings.DEFAULT
        .withDisabledComponents(Set.of())
        .withTopicIncomingMessages("address-to-place-responses");
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions