Giter VIP home page Giter VIP logo

Comments (4)

JakeWharton avatar JakeWharton commented on June 3, 2024

Do you have a public constructor?
On Jan 8, 2015 4:45 AM, "Kisty" [email protected] wrote:

Can't seem to run Burst with AndroidTestCase using a basic custom
instrumentation runner (class with getAndroidTestRunner() which returns
BurstAndroid).

Using burst-android 1.0.2

01-08 07:37:52.376 2546-2546/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: uk.co.imagitech.citb.operatives.plus, PID: 2546
java.lang.RuntimeException: Exception thrown in onCreate() of
ComponentInfo{uk.co.imagitech.citb.operatives.plus.test/uk.co.imagitech.citb.operatives.plus.test.BurstTestRunner}:
java.lang.RuntimeException: java.lang.IllegalStateException:
junit.framework.TestSuite$1 requires at least 1 public constructor
at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:4338)
at android.app.ActivityThread.access$1500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: java.lang.IllegalStateException:
junit.framework.TestSuite$1 requires at least 1 public constructor
at com.squareup.burst.BurstAndroid.setTest(BurstAndroid.java:38)
at
android.test.InstrumentationTestRunner.onCreate(InstrumentationTestRunner.java:379)
at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:4335)
at
android.app.ActivityThread.access$1500(ActivityThread.java:135)
at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: junit.framework.TestSuite$1
requires at least 1 public constructor
at
com.squareup.burst.BurstableConstructor.findSingle(BurstableConstructor.java:24)
at com.squareup.burst.BurstAndroid.explodeSuite(BurstAndroid.java:97)
at com.squareup.burst.BurstAndroid.explodeSuite(BurstAndroid.java:121)
at com.squareup.burst.BurstAndroid.setTest(BurstAndroid.java:36)
at
android.test.InstrumentationTestRunner.onCreate(InstrumentationTestRunner.java:379)
at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:4335)
at
android.app.ActivityThread.access$1500(ActivityThread.java:135)
at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)


Reply to this email directly or view it on GitHub
#47.

from burst.

dlubarov avatar dlubarov commented on June 3, 2024

I saw this a couple times... junit.framework.TestSuite$1 is a dummy TestCase representing a warning. Can you put a breakpoint in that warning method to see what the message was?

from burst.

Kisty avatar Kisty commented on June 3, 2024

@JakeWharton A public constructor where? In my custom AndroidTestCase, yes. Am using in a gradle build and using AndroidStudio to run the test as a Class. Could be a problem with the TestSuite which is generated? I could try with a custom TestSuite instead.

@dlubarov TestCase doesn't have any sources, will try and find them.

from burst.

dlubarov avatar dlubarov commented on June 3, 2024

We've dropped JUnit 3 support making this obsolete

from burst.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.