Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Files

Latest commit

 

History

History

jvm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

tbDEX Kotlin Acceptance Test

This is a simple Java main class which acts as an acceptance smoke test for the tbDEX Kotlin binary distribution. The Kotlin unit tests execute in Maven using the classpath as set by the Maven build process (ie. target/classes). This test intentionally lives outside of the Kotlin tbDEX project to test that it may be consumed as built (ie. the distributable JAR) and contains the native libraries necessary to run.

This acceptance test is run by the CI jobs after building the Kotlin distribution to ensure it may be run in all supported environments.

Building

From this folder, run:

javac TbdexAcceptanceTest.java \
  -cp ../../bound/kt/target/tbdex-0.0.0-main-SNAPSHOT-jar-with-dependencies.jar

You may need to replace the filename of this JAR with the version as built from Maven (note that this includes the version).

Running

From this folder, run:

java -classpath \
  ../../bound/kt/target/tbdex-0.0.0-main-SNAPSHOT-jar-with-dependencies.jar:. \
  TbdexAcceptanceTest

You may need to replace the filename of this JAR with the version as built from Maven (note that this includes the version).

You should see output similar to:

Successfully loaded shared library for tbdex_uniffi_aarch64_apple_darwin