We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
does not support shadow Thread.class
@Implements(Thread.class) public class ShadowThread extends Thread { @RealObject private Thread thread; @Implementation public synchronized void start() { System.out.println("========Thread start ======"); thread.run(); } } @Config(manifest = "src/main/AndroidManifest.xml", shadows = {MyShadowHandler.class, ShadowThread.class}) public Class .... { .... @Test public void onNetworkAvailable() throws Exception { Thread thread = new Thread(); thread.start(); } }
it does not run into ShadowThread.start() method, I have another shadowHandler class which can work,
org.robolectric:robolectric:3.3.2
The text was updated successfully, but these errors were encountered:
Robolectric doesn't support shadows for classes under the java. package unfortunately.
java.
Sorry, something went wrong.
No branches or pull requests
Description
does not support shadow Thread.class
Steps to Reproduce
it does not run into ShadowThread.start() method, I have another shadowHandler class which can work,
Robolectric & Android Version
org.robolectric:robolectric:3.3.2
Link to a public git repo demonstrating the problem:
The text was updated successfully, but these errors were encountered: