[#5901] feat(core): support tag event to Gravitino server #11125
Annotations
2 errors and 1 warning
Package Gravitino:
task ':core:spotlessJavaCheck'#L1
Execution failed for task ':core:spotlessJavaCheck':
The following files had format violations:
src/test/java/org/apache/gravitino/listener/api/event/TestTagEvent.java
@@ -1,174 +1,166 @@
package·org.apache.gravitino.listener.api.event;
-import·static·org.mockito.ArgumentMatchers.anyBoolean;
import·static·org.mockito.Mockito.any;
import·static·org.mockito.Mockito.mock;
import·static·org.mockito.Mockito.when;
+import·java.util.Arrays;
+import·java.util.Map;
import·org.apache.gravitino.NameIdentifier;
-import·org.apache.gravitino.exceptions.GravitinoRuntimeException;
import·org.apache.gravitino.listener.DummyEventListener;
import·org.apache.gravitino.listener.EventBus;
import·org.apache.gravitino.listener.TagEventDispatcher;
-
import·org.apache.gravitino.listener.api.info.TagInfo;
import·org.apache.gravitino.tag.Tag;
import·org.apache.gravitino.tag.TagChange;
import·org.apache.gravitino.tag.TagDispatcher;
+import·org.junit.jupiter.api.Assertions;
import·org.junit.jupiter.api.BeforeAll;
import·org.junit.jupiter.api.Test;
-import·org.junit.jupiter.api.Assertions;
import·org.junit.jupiter.api.TestInstance;
import·org.testcontainers.shaded.com.google.common.collect.ImmutableMap;
-import·java.util.Arrays;
-import·java.util.Map;
-
@testinstance(TestInstance.Lifecycle.PER_CLASS)
public·class·TestTagEvent·{
-····private·TagEventDispatcher·dispatcher;
-····private·TagEventDispatcher·failureDispatcher;
-····private·DummyEventListener·dummyEventListener;
-····private·Tag·tag;
+··private·TagEventDispatcher·dispatcher;
+··private·TagEventDispatcher·failureDispatcher;
+··private·DummyEventListener·dummyEventListener;
+··private·Tag·tag;
-····@BeforeAll
-····void·init()·{
-········this.tag·=·mockTag();
-········this.dummyEventListener·=·new·DummyEventListener();
-········EventBus·eventBus·=·new·EventBus(Arrays.asList(dummyEventListener));
-········TagDispatcher·tagDispatcher·=·mockTagDispatcher();
-········this.dispatcher·=·new·TagEventDispatcher(eventBus,·tagDispatcher);
-····}
... (244 more lines that didn't fit)
Run './gradlew :core:spotlessApply' to fix these violations.
at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:111)
at com.diffplug.gradle.spotless.SpotlessCheck.performAction(SpotlessCheck.java:53)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:248)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildO
|
Package Gravitino
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading