mirror of
https://github.com/samsonjs/media.git
synced 2026-04-13 12:35:48 +00:00
Use TestUtil.getPublicMethods instead of getDeclaredMethods
JaCoCo introduces private synthetic methods (even on interfaces) which
have to be skipped when checking that a 'forwarding' implementation does
forward everything. Instead we can use the existing `getPublicMethods()`
method which implicitly skips these (since they're private).
PiperOrigin-RevId: 533130932
(cherry picked from commit 620b9e1540)
This commit is contained in:
parent
400218c018
commit
9c1a80082f
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ public class SimpleBasePlayerTest {
|
|||
|
||||
@Test
|
||||
public void allPlayerInterfaceMethods_declaredFinal() throws Exception {
|
||||
for (Method method : Player.class.getDeclaredMethods()) {
|
||||
for (Method method : TestUtil.getPublicMethods(Player.class)) {
|
||||
assertThat(
|
||||
SimpleBasePlayer.class
|
||||
.getMethod(method.getName(), method.getParameterTypes())
|
||||
|
|
|
|||
Loading…
Reference in a new issue