sys1yagi / mastodon4j

mastodon client for java, kotlin https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md
MIT License
135 stars 28 forks source link

Feature/mockito kotlin #91

Open eepgwde opened 1 year ago

eepgwde commented 1 year ago

The build system is much simpler. It only builds mastodon4j and none of the other projects. The test/assets are now test/resources. The src/{main,test}/java directories are now kotlin. The toolchain is up-to-date: Gradle 8.1, Kotlin 1.8.10 and JVM 17. The Test Environment has been upgraded. The most important change was in MockClient: the eq and any functions now use mockito-kotlin. Many changes to test source files to catch Exceptons. No changes to main files.

The 99 tests have passed. I personally haven't tested it against a live Mastodon server, but I'll be doing that next. I'm developing in parallel over on Sourceforge https://sourceforge.net/projects/mastodon4kt/