Closed roman-mazur closed 10 years ago
Has anybody ever tried this method before?
Feel free. Write them as standard android tests though, not Robolectric.
I have a strange feeling that such tests should be generated... On Sep 25, 2014 6:58 PM, "Jake Wharton" notifications@github.com wrote:
Merged #133 https://github.com/square/assertj-android/pull/133.
— Reply to this email directly or view it on GitHub https://github.com/square/assertj-android/pull/133#event-170248188.
Will you publish a snapshot? On Sep 25, 2014 8:40 PM, mazur.roman@gmail.com wrote:
I have a strange feeling that such tests should be generated... On Sep 25, 2014 6:58 PM, "Jake Wharton" notifications@github.com wrote:
Merged #133 https://github.com/square/assertj-android/pull/133.
— Reply to this email directly or view it on GitHub https://github.com/square/assertj-android/pull/133#event-170248188.
The whole library should be generated but then you have a natural language problem and there's all kinds of special case snowflake APIs which behave differently.
And yes, I'll publish a SNAPSHOT.
I'll be grateful, if you let me know when snapshot is available.
Did it yesterday On Sep 26, 2014 12:37 AM, "Roman Mazur" notifications@github.com wrote:
I'll be grateful, if you let me know when snapshot is available.
— Reply to this email directly or view it on GitHub https://github.com/square/assertj-android/pull/133#issuecomment-56929071 .
And where did you published it? Sonatype does not seem to host it: https://oss.sonatype.org/content/repositories/snapshots/com/squareup/assertj/
It's there now.
On Fri, Sep 26, 2014 at 7:51 AM, Roman Mazur notifications@github.com wrote:
And where did you published it? Sonatype does not seem to host it: https://oss.sonatype.org/content/repositories/snapshots/com/squareup/assertj/
— Reply to this email directly or view it on GitHub https://github.com/square/assertj-android/pull/133#issuecomment-56971913 .
Android has same values for flags
FLAG_ACTIVITY_MULTIPLE_TASK
andFLAG_RECEIVER_NO_ABORT
. Hence, any invocation ofhasFlags
resulted in IllegalStateException being thrown.Try, for example:
I believe we also need a project with integration tests. Where this test could be written. I personally created one to test your code from master branch. But I do not submit it here: it uses robolectric. Should I submit it? I really do not know whether this change will break something in other place. The project definitely lacks tests IMHO...