hahaffan commented on issue #8206:
URL: https://github.com/apache/gravitino/issues/8206#issuecomment-3204431382
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Assertions;
import java.util.Collections;
import java.util.Map;
public class TestAsyncQueueListener {
private static class NoopListener implements EventListenerPlugin {
@Override
public void init(Map<String, String> properties) {}
@Override
public void start() {}
@Override
public void stop() {}
}
@Test
public void testDropEventLoggingDoesNotThrow() {
AsyncQueueListener listener =
new AsyncQueueListener(Collections.singletonList(new
NoopListener()), "test", 1, 1);
PreEvent event = new ListMetalakePreEvent("user");
listener.onPreEvent(event); // fill the queue
Assertions.assertDoesNotThrow(() -> listener.onPreEvent(event));
}
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]