Skip to content

aml-org/examples

Folders and files

NameName
Last commit message
Last commit date
Mar 29, 2022
Dec 12, 2024
Jun 13, 2022
Mar 20, 2023
May 25, 2023
Jun 9, 2021
May 25, 2023
Sep 8, 2021
Jun 13, 2022
Jun 13, 2022
Jun 13, 2022
Oct 14, 2024
Jun 10, 2021
May 6, 2021

Repository files navigation

tested with jest

AMF Examples

The purpose of this repository is to provide a set of usage examples for AMF and AML functions. The examples are incremental, from simple to more complex.

AMF 4 examples

Java

To run the Java examples you must build the project with gradle and then run the unit tests:

./gradlew :AMF4:clean build
./gradlew :AMF4:test

You can also run a specific file. For example, you can run only the parsing examples:

./gradlew :AMF4:test --tests "ParsingTest"

JavaScript

To run the Javascript you need to go to the AMF4 folder, build the project with npm and run the unit tests with jest, it can all be done running the following command on the root folder:

npm run test-amf4

You can also run a specific file. For example, you can run only the parsing examples:

jest parsing.test.js

AMF 5 examples

Java

To run the Java examples you must build the project with gradle and then run the unit tests:

./gradlew :AMF5:clean build
./gradlew :AMF5:test

Scala

To run the Scala examples you must build the project with gradle and then run the scalatest unit tests:

./gradlew :AMF5:clean build
./gradlew :AMF5:scalatest

TypeScript

To run the Javascript you need to go to the AMF5 folder, build the project with npm and run the unit tests, it can all be done running the following command on the root folder:

npm run test-amf5

All tests

You can run all AMF 5 tests (Scala, Java and TypeScript) by running the following task:

./gradlew :AMF5:testAll