Skip to content

[fix][test] Make base test class method protected so that it passes ReportUnannotatedMethods validation#21976

Merged
lhotari merged 1 commit into
apache:masterfrom
lhotari:lh-make-base-test-class-method-protected
Jan 27, 2024
Merged

[fix][test] Make base test class method protected so that it passes ReportUnannotatedMethods validation#21976
lhotari merged 1 commit into
apache:masterfrom
lhotari:lh-make-base-test-class-method-protected

Conversation

@lhotari

@lhotari lhotari commented Jan 26, 2024

Copy link
Copy Markdown
Member

Motivation

  • PulsarSQL / Trino tests in branch-3.1 fail with this error log:
FATAL: io.trino.testng.services.ReportUnannotatedMethods: Test class org.apache.pulsar.sql.presto.TestPulsarAuth has methods which are public but not explicitly annotated. Are they missing @Test?
		public void org.apache.pulsar.broker.auth.MockedPulsarServiceBaseTest.reconnectAllConnections() throws java.lang.Exception
JVM will be terminated

Modifications

  • make reconnectAllConnections method protected and the static method private.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

…nfused as a test method

- PulsarSQL / Trino tests in branch-3.1 fail with this error log:
FATAL: io.trino.testng.services.ReportUnannotatedMethods: Test class org.apache.pulsar.sql.presto.TestPulsarAuth has methods which are public but not explicitly annotated. Are they missing @test?
    public void org.apache.pulsar.broker.auth.MockedPulsarServiceBaseTest.reconnectAllConnections() throws java.lang.Exception
JVM will be terminated
@lhotari

lhotari commented Jan 26, 2024

Copy link
Copy Markdown
Member Author

/pulsarbot rerun-failure-checks

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d37d31f) 73.61% compared to head (f5f15b5) 73.59%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #21976      +/-   ##
============================================
- Coverage     73.61%   73.59%   -0.02%     
- Complexity    32433    32450      +17     
============================================
  Files          1861     1861              
  Lines        138738   138738              
  Branches      15200    15200              
============================================
- Hits         102130   102109      -21     
- Misses        28704    28734      +30     
+ Partials       7904     7895       -9     
Flag Coverage Δ
inttests 24.09% <ø> (-0.03%) ⬇️
systests 23.64% <ø> (+<0.01%) ⬆️
unittests 72.89% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 61 files with indirect coverage changes

@lhotari lhotari merged commit 67354b1 into apache:master Jan 27, 2024
lhotari added a commit that referenced this pull request Jan 27, 2024
…eportUnannotatedMethods validation (#21976)

(cherry picked from commit 67354b1)
lhotari added a commit that referenced this pull request Jan 27, 2024
…eportUnannotatedMethods validation (#21976)

(cherry picked from commit 67354b1)
lhotari added a commit that referenced this pull request Jan 27, 2024
…eportUnannotatedMethods validation (#21976)

(cherry picked from commit 67354b1)
@Technoboy- Technoboy- modified the milestones: 3.3.0, 3.2.0 Jan 27, 2024
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Mar 1, 2024
…eportUnannotatedMethods validation (apache#21976)

(cherry picked from commit 67354b1)
(cherry picked from commit c315c7b)
lhotari added a commit that referenced this pull request Mar 5, 2024
…eportUnannotatedMethods validation (#21976)

(cherry picked from commit 67354b1)
mukesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Mar 6, 2024
…eportUnannotatedMethods validation (apache#21976)

(cherry picked from commit 67354b1)
(cherry picked from commit c315c7b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants