Skip to content

Instantly share code, notes, and snippets.

View nagkumar's full-sized avatar
💭
Code Doctor to treat #techdebt

Raja Nagendra Kumar nagkumar

💭
Code Doctor to treat #techdebt
View GitHub Profile
@nagkumar
nagkumar / build.gradle.kts
Created July 19, 2025 13:24
Make it work with JDK 24 by upgrading asm version from 9.7 to 9.8
/*
* MIT License
*
* Copyright (c) 2024 Todd Ginsberg
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@nagkumar
nagkumar / STExec.java
Created September 2, 2024 10:59
PublicSTE
package sample;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public final class STExec
{
public STExec()
{
exec();
Library Language Assertion Style Integration with Testing Frameworks IDE Integration Pros Cons
AssertJ Java Fluent checked checked Supports a wide range of assertions, easy to read and write Limited support for custom assertions
Hamcrest Java Matcher-based checked Provides a wide range of matchers, easy to read and write Can be verbose for some use cases
JUnit 5 Assertions Java Multiple styles (assertXXX(), fail()) checked checked Built-in to JUnit 5, easy to use, supports a wide range of assertions Limited to use with JUnit 5
Truth Java Fluent checked Easy to read and write, supports a wide range of assertions, good IDE integration Limited support for custom assertions
KotlinTest Kotlin Multiple styles (shouldXXX(), expectXXX()) checked checked Provides a wide range of assertions, easy to use, supports custom assertions Can be complex for some use cases
Scalatest Scala Multiple styles (assert(), expect(), should()) checked checked Good integration with testing frameworks, flexible Can be
{
"allAbis": [
"armeabi-v7a",
"arm64-v8a"
],
"validAbis": [
"ARMEABI_V7A"
]
}