Marcel Schnelle

Results 101 comments of Marcel Schnelle

Thanks for bringing this up. The two test failure messages seem unrelated to each other, let's tackle them one by one. The `NoSuchMethodError` going into `j$/util/concurrent/ConcurrentHashMap$KeySetView` makes me think that...

I'm assuming that L8's rewriting of core Java classes for maintaining Android compatibility clashes with the JUnit 5 stuff that uses the _actual_ Java classes. By giving a higher `minSdk`,...

After more experimentation, I am convinced that this behavior is a bug inside the Android Gradle Plugin and/or L8 desugaring stack. I have raised an issue on the Google bug...

Thanks @shawnthye! This does reflect the behavior that I've seen when the minimum SDK is below 26. The desugaring part of the Android Gradle Plugin doesn't kick in for this...

Nothing to share, sorry. Feel free to star the ticket on the Google issue tracker (linked above) to give some visibility to it. It's not in the realm of possibility...

I found this line in the [release notes of the desugaring library 1.2.0](https://github.com/google/desugar_jdk_libs/blob/master/CHANGELOG.md#version-120-2022-06-21): > Support for all methods on java.util.concurrent.ConcurrentHashMap. Sounds promising. Note to self to check out this particular...

The direct replacement for JUnit 4's `TestRule` is the [JUnit 5 Extension Model](https://junit.org/junit5/docs/current/user-guide/#extensions). In essence, you'd need to translate the behavior of the `GrantPermissionRule` into an extension, which you could...

Below is a first version of the JUnit5 implementation for the rule. I'll have to conduct some more tests with it, but it'll be likely shipped in the 1.3.0 release...

Thanks for reporting this and sorry for the late response. I've been playing around with this and was able to reproduce it quite easily on an Android 8 emulator. I'm...

Thank you for bringing this up! Unfortunately, test rules are a concept exclusive to JUnit 4 and a new implementation is required to make them work with JUnit 5 (similar...