Skip to content

Conversation

copybara-service[bot]
Copy link

Fix sandboxed class lookup when a test is subclassed.

This can happen with the following structure:

class MyBase {
  @Test public void myTest() {}
}

@RunWith(RobolectricTestRunner.class)
class MyTest extends MyBase {
  @Override public void myTest() {}
}

In this case the method marked @Test is MyBase.myTest but the old behavior in SandboxTestRunner was to create a framework method in the sandbox for MyTest.myTest.

@copybara-service copybara-service bot closed this Mar 6, 2023
@copybara-service copybara-service bot deleted the piper_513686914 branch March 6, 2023 15:12
@copybara-service copybara-service bot merged commit ec8d734 into google Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants