[fix][test] Replace usage of org.testcontainers.shaded.* classes in tests#20437
Conversation
nicoloboschi
left a comment
There was a problem hiding this comment.
What about adding a new checkstyle rule to avoid the import of
org.testcontainers.shaded ?
@nicoloboschi We have already #18113 and I also tried lhotari@03624d2a since there was a comment somewhere that IllegalImport check doesn't apply to class imports. UPDATE: We do have checkstyle for tests enabled: Line 1922 in e380910 I'll check why my experiment didn't work. |
|
Found it. Most checks are disabled for tests: |
|
@nicoloboschi The checkstyle rule is now active and will prevent importing org.testcontainers.shaded.* classes in the future. |
|
thought - I'd actually prefer to use some technologies that can automatically format code like spotless (see FLINK-20651) so we end style bikeshedding :D, but it can introduce a big diff and the maven plugin cannot cover "forbid import pattern" pattern (while the Gralde one can, I suppose it's technically possible upstream to support for maven plugin also). I know that such issues prevent typical contributors from touching Pulsar's code. |
…ests (apache#20437) (cherry picked from commit 5f2c29d) Signed-off-by: Zixuan Liu <nodeces@gmail.com>
Motivation
org.testcontainers.shaded.*classes shouldn't be used.Modifications
Documentation
docdoc-requireddoc-not-neededdoc-complete