fix: disable usage of JDK Unsafe class in GSON (#2341)

This commit is contained in:
Skylot
2024-11-13 18:28:04 +00:00
parent 60dcdc7096
commit 1e1036c049
20 changed files with 138 additions and 108 deletions
@@ -0,0 +1,27 @@
package jadx.gui.update
import jadx.gui.settings.JadxUpdateChannel
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
/**
* Test updates fetch.
* All tests disabled because of network requests, run manually on JadxUpdate changes
*/
@Disabled("Network requests")
class TestJadxUpdate {
@Test
fun testStableCheck() {
JadxUpdate("1.5.0").checkForNewRelease(JadxUpdateChannel.STABLE)?.let {
println("Latest release: $it")
}
}
@Test
fun testUnstableCheck() {
JadxUpdate("r2000").checkForNewRelease(JadxUpdateChannel.UNSTABLE)?.let {
println("Latest unstable: $it")
}
}
}