Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmann committed Nov 14, 2024
1 parent 25caafa commit 16ecaa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.graylog2.Configuration;
import org.graylog2.database.NotFoundException;
import org.graylog2.inputs.Input;
import org.graylog2.inputs.InputDiagnosticService;
import org.graylog2.inputs.InputService;
import org.graylog2.plugin.configuration.ConfigurationRequest;
import org.graylog2.plugin.configuration.fields.ConfigurationField;
Expand Down Expand Up @@ -67,7 +68,7 @@ public class InputsResourceMaskingPasswordsTest {

class InputsTestResource extends InputsResource {
public InputsTestResource(InputService inputService, MessageInputFactory messageInputFactory) {
super(inputService, messageInputFactory, new Configuration());
super(inputService, mock(InputDiagnosticService.class), messageInputFactory, new Configuration());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import jakarta.ws.rs.BadRequestException;
import org.graylog2.Configuration;
import org.graylog2.configuration.HttpConfiguration;
import org.graylog2.inputs.InputDiagnosticService;
import org.graylog2.inputs.InputService;
import org.graylog2.plugin.database.users.User;
import org.graylog2.plugin.inputs.MessageInput;
Expand Down Expand Up @@ -116,7 +117,7 @@ static class InputsTestResource extends InputsResource {
public InputsTestResource(InputService inputService,
MessageInputFactory messageInputFactory,
Configuration config) {
super(inputService, messageInputFactory, config);
super(inputService, mock(InputDiagnosticService.class), messageInputFactory, config);
configuration = mock(HttpConfiguration.class);
this.user = mock(User.class);
lenient().when(user.getName()).thenReturn("foo");
Expand Down

0 comments on commit 16ecaa0

Please sign in to comment.